mccallum
8a35ff8305
Rename methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@883 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:10:37 +00:00
mccallum
315b64ea8d
([Coder +newReadingFromStream:]): Renamed from
...
coderReadingFromStream:, because it's silly to have different names
for this method for subclasses of Coder. Don't autorelease returned
object (I also find this more helpful).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@882 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:09:10 +00:00
mccallum
666be690b4
([ConnectedCoder +newDecodingWithConnection:timeout:]): Rename
...
coderReadingFromStream to newReadingFromStream, and don't retain.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@881 72102866-910b-0410-8b05-ffd578937521
1996-01-28 02:07:50 +00:00
mccallum
401ec323bf
(GNU_MFILES): Add Archiver.m.
...
(GNU_HEADERS): Add objects/Archiver.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@880 72102866-910b-0410-8b05-ffd578937521
1996-01-28 01:59:17 +00:00
mccallum
cc85668753
New file.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@879 72102866-910b-0410-8b05-ffd578937521
1996-01-28 01:58:35 +00:00
mccallum
41b8cd0860
(GNU_HEADERS): Added CStreaming.h.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@877 72102866-910b-0410-8b05-ffd578937521
1996-01-27 01:10:55 +00:00
mccallum
44b3266d46
Include BinaryCStream.h and TextCStream.h, not the old *Coder.h
...
versions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@876 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:56:10 +00:00
mccallum
285590f7a1
(Coder): Make subclass of Coder, not BinaryCoder.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@875 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:55:38 +00:00
mccallum
17f0b02fd0
Declare new method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@874 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:55:12 +00:00
mccallum
e3ee1bd33f
([TextCStream -encodeValueOfCType:at:withName:]): Remove the asserts
...
that prohibited structs and arrays.
([TextCStream -decodeValueOfCType:at:withName:]): Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@873 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:55:00 +00:00
mccallum
98284cfa16
Include the code for handling structs and arrays.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@872 72102866-910b-0410-8b05-ffd578937521
1996-01-27 00:54:11 +00:00
mccallum
73b1854c3f
Include <objects/NSString.h> instead of <objects/String.h>.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@868 72102866-910b-0410-8b05-ffd578937521
1996-01-26 23:46:02 +00:00
mccallum
0f08828c73
([ConnectedCoder +newDecodingWithConnection:timeout:]): Use
...
+coderReadingFromStream, not the deprecated -initReadingFromStream.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@865 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:35:30 +00:00
mccallum
1cb0268da2
([BinaryCStream -decodeName:]): Check for NULL name.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@864 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:34:42 +00:00
mccallum
8c3c74e514
encodeObjectBycopy -> encodeBycopyObject (to better match NeXT).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@863 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:34:21 +00:00
mccallum
c29b522cfe
([Coder +initialize]): Make BinaryCStream the default, not TextCStream.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@859 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:17:19 +00:00
mccallum
5db39dd616
*** empty log message ***
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@858 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:10:40 +00:00
mccallum
ed431743bd
Move implementation of NSGUnarchiver here from NSGUnarchiver.m.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@856 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:03:30 +00:00
mccallum
22f3f8f15c
([Coder -encodeTag:]): Let the cstream handle it, if it can.
...
([Coder -decodeTag]): Likewise.
([Coder -encodeClass:]): Perform classname mapping ala
encodeClassName:intoClassName.
([Coder -_doEncodeBycopyObject:]): Perform callbacks
-replacementObjectForCoder, -replacementObjectForArchiver,
-classForCoder, -classForArchiver.
([Coder -encodeClassName:intoClassName:]): Fix typos.
([Coder -encodeConditionalObject:]): Don't encode *forward*
references, only backward references; apparently NeXT-style decoding
(with -decodeObject, instead of GNU's decodeObjectAt:) can't handle
them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@855 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:02:33 +00:00
mccallum
1081b8004f
Move NSUnarchiver implementation here from NSUnarchiver.m. Use
...
subclassResponsibility where correct.
([NSArchiver +initialize]): Make NSGArchiver the concrete class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@852 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:53:15 +00:00
mccallum
57505e7118
(Object (ConnectedCoderCallbacks)): Category methods moved here from
...
Coder.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@851 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:49:48 +00:00
mccallum
896bb5731a
(GNUSTEP_MFILES): NSUnarchiver.m and NSGUnarchiver.m removed.
...
(GNUSTEP_HEADERS): Foundation/NSUnarchiver.h and
Foundation/NSGUnarchiver.h removed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@847 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:41:46 +00:00
mccallum
79d8ce80be
(NSInconsistentArchiveException): String removed; it's in NSArchiver.m.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@846 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:20:10 +00:00
mccallum
09f615fc04
([NSGArchiver +initialize]): Add the behavior of the Coder class. All
...
other methods deleted.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@845 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:19:20 +00:00
mccallum
3cdb041057
Some minor formatting changes.
...
([NSObject -classForArchiver]): Method removed; it's in NSArchiver.m.
([NSObject -replacementObjectForArchiver:]): Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@844 72102866-910b-0410-8b05-ffd578937521
1996-01-26 19:18:08 +00:00
mccallum
fef5cf6e1c
.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@843 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:50:03 +00:00
mccallum
4284f1540b
(GNUSTEP_MFILES): Remove NSGCoder.m.
...
(GNUSTEP_HEADERS): Remove Foundation/NSGCoder.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@842 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:42:32 +00:00
mccallum
1a623a0c7a
(self): New macro, cast to (Array*) to reflect behavior addition.
...
([NSGArray -initWithObjects:count:]): Call Array designated initalizer
instead of accessing ivars directly.
([NSGMutableArray -initWithCapacity:]): Likewise.
([NSGArray -count]): Method removed, Array behavior will take care of
it.
([NSGArray -objectAtIndex:]): Use self to access ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@841 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:29:07 +00:00
mccallum
74187fde91
(class_add_behavior): Fix typo.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@839 72102866-910b-0410-8b05-ffd578937521
1996-01-26 16:25:32 +00:00
mccallum
98d8f79350
(class_add_behavior): If necessary, increase instance_size of class to
...
which behavior is being added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@838 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:48:29 +00:00
mccallum
957e45ea77
*** empty log message ***
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@837 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:44:29 +00:00
mccallum
9ca005c003
Added generated source files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@836 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:34:59 +00:00
mccallum
efff2f2c1c
Added generated source files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@834 72102866-910b-0410-8b05-ffd578937521
1996-01-26 15:34:05 +00:00
mccallum
6bfa5879d9
([NSArchiver +initialize]): Set concrete class to Coder.
...
([NSArchiver +allocWithZone:]): New method.
([NSArchiver -initForWritingWithMutableData:]): Make this a subclass
responsibility.
([NSArchiver -versionForClassName:]): New method.
([NSArchiver +unarchiveObjectWithData:data]): New method.
([NSArchiver +unarchiveObjectWithFile:path]): Call concrete class.
([NSArchiver +classNameEncodedForTrueClassName:]): Likewise.
([NSArchiver +classNameDecodedForArchiveClassName:inArchiveName]):
Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@833 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:15:14 +00:00
mccallum
e086b5a24f
([NSGData -writeToFile:atomically:]): Use cStringNoCopy.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@829 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:10:13 +00:00
mccallum
53cb854a9f
([MemoryStream -init]): New method, otherwise naive creation dies with
...
NULL buffer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@828 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:09:38 +00:00
mccallum
f894275a83
(Coding -cStream): New method.
...
(Coder -encodeArrayOfObjCType:count:at:withName:): Renamed from
-encodeArrayOfObjCType:at:count:withName:, to better match NeXT.
(Coder -decodeArrayOfObjCType:count:at:withName:): Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@827 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:08:47 +00:00
mccallum
03db0b9686
(zone): New ivar.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@826 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:07:34 +00:00
mccallum
f851b473fb
([Coder -_initWithCStream:formatVersion:isDecoding:]): Initialize new
...
zone ivar.
([Coder -encodeBycopyObject:withName:]): Renamed from
-encodeObjectBycopy, to better match NeXT.
([Coder -decodeObjectAt:anObjPtr:name]): Use zone ivar in creating
decoded objects.
([Coder -encodeArrayOfObjCType:count:at:withName:]): Renamed from
-encodeArrayOfObjCType:at:count:withName:, to better match NeXT.
([Coder -decodeArrayOfObjCType:count:at:withName:]): Likewise.
([Coder +classNameEncodedForTrueClassName:trueName]): New method, for
NSCoder compatibility.
([Coder -encodeClassName:trueNameintoClassName:inArchiveName]):
Likewise.
([Coder +classNameDecodedForArchiveClassName:inArchiveName]):
Likewise.
([Coder +decodeClassName:inArchiveNameasClassName:]): Likewise.
([Coder -objectZone]): Likewise.
([Coder -setObjectZone:]): Likewise.
([Coder -encodeValueOfObjCType:at:]): Likewise.
([Coder -encodeArrayOfObjCType:count:at:]): Likewise.
([Coder -encodeBycopyObject:]): Likewise.
([Coder -encodeConditionalObject:]): Likewise.
([Coder -encodeDataObject:]): Likewise.
([Coder -encodeObject:]): Likewise.
([Coder -encodePoint:]): Likewise.
([Coder -encodeRect:]): Likewise.
([Coder -encodeRootObject:]): Likewise.
([Coder -encodeSize:]): Likewise.
([Coder -encodeValuesOfObjCTypes:...:]): Likewise.
([Coder -decodeValueOfObjCType:at:]): Likewise.
([Coder -decodeArrayOfObjCType:count:at:]): Likewise.
([Coder -decodeDataObject]): Likewise.
([Coder -decodeObject]): Likewise.
([Coder -decodePropertyList]): Likewise.
([Coder -decodePoint]): Likewise.
([Coder -decodeRect]): Likewise.
([Coder -decodeSize]): Likewise.
([Coder -decodeValuesOfObjCTypes:...:]): Likewise.
([Coder -systemVersion]): Likewise.
([Coder -versionForClassName:]): Likewise.
([Coder -initForWritingWithMutableData:]): New method, for
NSArchiver compatibility.
([Coder +archivedDataWithRootObject:]): Likewise.
([Coder +archiveRootObject:toFile:]): Likewise.
([Coder +unarchiveObjectWithData:data]): Likewise.
([Coder +unarchiveObjectWithFile:path]): Likewise.
([Coder -archiverData]): Likewise.
([Coder -cStream]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@825 72102866-910b-0410-8b05-ffd578937521
1996-01-26 03:06:35 +00:00
mccallum
b117bfc60c
([StdioStream -isClosed]): Remove bad implementation; currently not
...
implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@821 72102866-910b-0410-8b05-ffd578937521
1996-01-25 17:12:51 +00:00
mccallum
1efc28f15d
Declare new methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@820 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:59:00 +00:00
mccallum
8675874d91
([Coder -initForWritingToStream:withFormatVersion:cStreamClass:
...
cStreamFormatVersion:]): New method.
([Coder -initForWritingToFile:withFormatVersion:cStreamClass:
cStreamFormatVersion:]): New method.
([Coder -initForWritingToFile:filenamewithCStreamClass:cStreamClass]):
New method.
([Coder +encodeRootObject:withName:nametoStream:]): New method.
([Coder +encodeRootObject:withName:nametoFile:filename]): New method.
([Coder +decodeObjectWithName:namefromStream:]): New method.
([Coder +decodeObjectWithName:namefromFile:filename]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@819 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:58:36 +00:00
mccallum
6991e266a7
Declare new method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@818 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:54:53 +00:00
mccallum
ca29ea6a80
Use "..withFormatVersion" instead of "formatVersion" in several method
...
names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@817 72102866-910b-0410-8b05-ffd578937521
1996-01-25 16:54:14 +00:00
mccallum
aee300baa1
([MemoryStream -closeStream]): New method, just flush the stream.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@816 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:29:30 +00:00
mccallum
e6b2bd4f25
(Coding -closeCoder): New protocol method.
...
(Coding -isClosed): New protocol method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@815 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:28:13 +00:00
mccallum
2047caaf47
([Coder -initForReadingFromFile:filename]): New method.
...
([Coder -initForWritingToFile:filename]): New method.
([Coder -closeCoder]): New method.
([Coder -isClosed]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@814 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:27:30 +00:00
mccallum
00fb974d7a
([StdioStream -isClosed]): New method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@813 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:23:06 +00:00
mccallum
1c3393356a
(Streaming -isClosed): New protocol method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@812 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:15:01 +00:00
mccallum
42d8d67632
([Stream -flushStream]): Do nothing, instead of calling
...
-subclassResponsibility.
([Stream -closeStream]): Likewise.
([Stream -isClosed]): New method, return NO.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@811 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:14:32 +00:00