Andrew McCallum
aae0ebd2b7
([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
Andrew McCallum
93f17960f6
(SRCS): Added nsarchiver.m.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@824 72102866-910b-0410-8b05-ffd578937521
1996-01-26 02:58:47 +00:00
Andrew McCallum
7f261d0848
New file.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@823 72102866-910b-0410-8b05-ffd578937521
1996-01-26 02:57:43 +00:00
Andrew McCallum
ab2ed86ac1
(main): Use new [Coder -closeCoder] method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@822 72102866-910b-0410-8b05-ffd578937521
1996-01-25 17:14:29 +00:00
Andrew McCallum
f1990b02b2
([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
Andrew McCallum
dd2ecb6dbe
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
Andrew McCallum
e288bb5407
([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
Andrew McCallum
eca48bbb5a
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
Andrew McCallum
60d64b4f5b
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
Andrew McCallum
325a73414d
([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
Andrew McCallum
7f5dfb670f
(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
Andrew McCallum
57298e58f9
([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
Andrew McCallum
9bd48868b3
([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
Andrew McCallum
b9d8479480
(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
Andrew McCallum
ead174c188
([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
Andrew McCallum
e895d8bfaf
([MemoryStream -flushStream]): Method removed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@810 72102866-910b-0410-8b05-ffd578937521
1996-01-25 15:11:40 +00:00
Andrew McCallum
fcd9e82663
([StdioStream -closeStream]): New method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@809 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:41:04 +00:00
Andrew McCallum
91f6d02e64
([Stream -closeStream]): New method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@808 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:37:09 +00:00
Andrew McCallum
e02c73f988
(Streaming -closeStream): New method; we must separate the idea of
...
"closing" a stream and "deallocating" a stream because of delays in
deallocation due to -autorelease.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@807 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:36:50 +00:00
Andrew McCallum
255eb32425
Declare new methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@806 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:06:15 +00:00
Andrew McCallum
3fde73e804
([CStream -encodeWithName:valuesOfCTypes:...]): New method.
...
([CStream -decodeWithName:valuesOfCTypes:...]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@805 72102866-910b-0410-8b05-ffd578937521
1996-01-24 15:06:04 +00:00
Andrew McCallum
69dca9a986
Include <objects/NSString.h> for @"" in encoding withName:. Use
...
constant string objects instead of C strings where appropriate.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@804 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:13:30 +00:00
Andrew McCallum
e1b0d6ef6c
([String -initWithCStringNoCopy:freeWhenDone:]): New method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@803 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:12:44 +00:00
Andrew McCallum
a82c850a89
([Stream -writeFormat:arguments:]): New method.
...
([Stream -readFormat:arguments:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@802 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:12:19 +00:00
Andrew McCallum
c706d02b55
Include <objects/NSString.h> for @"" in encoding withName:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@801 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:11:55 +00:00
Andrew McCallum
616afca949
Use constant string objects instead of C strings where appropriate.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@800 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:11:20 +00:00
Andrew McCallum
b50c6a26a6
New file.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@799 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:09:55 +00:00
Andrew McCallum
5204209c5c
(SIGNATURE_FORMAT_STRING): New macro.
...
([Coder -writeSignature]): Use it.
([Coder +readSignatureFromCStream:getClassname:formatVersion:]):
Likewise, and receive (char*) instead of (char**). All callers
changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@798 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:03:19 +00:00
Andrew McCallum
791233e4ad
Include <objects/NSString.h> for @"" in encoding withName:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@797 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:02:00 +00:00
Andrew McCallum
300f160311
Use string objects instead of C strings
...
for name arguments to encoding methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@796 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:33:21 +00:00
Andrew McCallum
6593f89af7
Add errs*.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@795 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:28:58 +00:00
Andrew McCallum
c211848304
*** empty log message ***
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@794 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:25:33 +00:00
Andrew McCallum
9a01a35270
(register_printf_function): Check for this function.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@793 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:24:33 +00:00
Andrew McCallum
45914e7bf1
Update for new Coder organization.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@792 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:24:06 +00:00
Andrew McCallum
ef3fc29d79
(Streaming -writeFormat:arguments:): New method.
...
(Streaming -readFormat:arguments:): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@791 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:20:47 +00:00
Andrew McCallum
eedc393ce0
Don't include <objects/String.h>
...
(Coding -encodeValueOfCType:at:withName:): New method.
(Coding -decodeValueOfCType:at:withName:): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@790 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:19:37 +00:00
Andrew McCallum
477eab35af
Declare new methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@789 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:18:01 +00:00
Andrew McCallum
166ea6cd17
(GNU_MFILES): Add BinaryCStream.m and CStream.m.
...
(GNU_HEADERS): Add objects/BinaryCStream.h and objects/CStream.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@788 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:17:27 +00:00
Andrew McCallum
335e62ffb6
(handle_printf_atsign): Fix type for va_arg ().
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@787 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:16:35 +00:00
Andrew McCallum
fae6d412cc
Use <Encoding> and <Decoding> protocols in argument types.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@786 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:16:05 +00:00
Andrew McCallum
f13e22a000
([ConnectedCoder +newEncodingWithConnection:sequenceNumber:identifier:]):
...
Use new Coder initializer.
([ConnectedCoder +newDecodingWithConnection:timeout:]): Likewise.
([ConnectedCoder -dismiss]): Fix typo: use cstream ivar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@785 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:15:23 +00:00
Andrew McCallum
b8d4d350c0
([Coder -writeSignature]): Write directly to stream ivar.
...
([Coder +readSignatureFromCStream:getClassname:PtrformatVersion:]):
Likewise.
([Coder -initForReadingFromStream:s]): New method.
([Coder -initForWritingToStream:s]): New method.
([Coder +coderWritingToStream:]): New method.
([Coder +coderWritingToFile:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@784 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:12:36 +00:00
Andrew McCallum
b107d324d1
(GNU_MFILES): Remove BinaryCoder.m. and TextCoder.m
...
(GNU_HEADERS): Remove objects/BinaryCoder.h and objects/TextCoder.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@783 72102866-910b-0410-8b05-ffd578937521
1996-01-24 00:33:22 +00:00
Andrew McCallum
9fd1f722a3
.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@782 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:59:51 +00:00
Andrew McCallum
a4d33fa28e
Use new-style method name "..ValueOfObjCType"
...
and "..ValueOfCType", instead of "..ValueOfType" and
"..ValueOfSimpleType".
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@781 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:57:17 +00:00
Andrew McCallum
eaa0fe908e
([NSString +initialize]): Cast function pointer.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@780 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:41:02 +00:00
Andrew McCallum
5f48440f84
This new code, #if HAVE_REGISTER_PRINTF_FUNCTION, a function defined
...
by GNU libc.
(handle_printf_atsign): New function to handle %@ in printf strings.
([NSString +initialize]): Register the new printf-handler function.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@779 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:30:05 +00:00
Andrew McCallum
5afcd8233e
(Streaming): Include NSObject protocol in Streaming protocol, so we
...
can use NSObject methods on arguments passed with <Streaming> type.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@778 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:08:25 +00:00
Andrew McCallum
35671473e6
Declare new methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@777 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:07:24 +00:00
Andrew McCallum
c7e63977de
Use new-style method name "..ValueOfObjCType", instead of
...
"..ValueOfType". Use (id <String>) instead of (char *) where
appropriate.
(Encoding -initEncodingOnStream:): Method removed.
(Encoding -initEncoding): Method removed.
(Encoding -encodeValueOfSimpleType:at:withName:): Method removed.
(Decoding -initDecodingOnStream:): Method removed.
(Decoding -initDecoding): Method removed.
(Decoding -decodeValueOfSimpleType:at:withName:): Method removed.
(CommonCoding +defaultFormatVersion): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@776 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:06:35 +00:00