This is NSCoding.rtf in view mode; [Download] [Up]
paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc. All Rights Reserved.
s0 li100 fi0 ri1007 ql f0 b fs52 fs80
fs52 Protocols
fs28
fs52 s4 fs36 fs70
fs36 NSCoding
pard s0 li2872 tx2872 f1 b0 fs28 fs48
fs28 f0 b fs24 Adopted By:tab b0 fs28 f1 NSObject
fs20
fs28 s7 fi-2771 ri1007 ql f0 b fs24 Declared In:tab b0 fs28 f1 Foundation/NSObject.h
fs20
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs28 fs20
fs28 Protocol Description
fs14
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2
fs28 The NSCoding protocol declares the two methods that a class must implement so that objects of that class can be encoded and decoded. This capability provides the basis for archiving (where objects and other structures are stored on disk) and distribution (where objects are copied to different address spaces).
fs16
fs28 When an object receives an b encodeWithCoder:b0 message, it should write its instance variables (and, through a message to b superb0 , the instance variables that it inherits) to the supplied NSCoder. Similarly, when an object receives an b initWithCoder:b0 message, it should initialize its instance variables (and inherited instance variables, again through a message to b superb0 ) from the data in the supplied NSCoder. See the NSCoder and NSArchiver class specifications for more complete information.
fs16
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs24
fs28 Encoding and Decoding Objects
fs14
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2
fs28 fi-6552 {f3 -} (void)b encodeWithCoder:b0 (NSCoder *)i aCoderi0 tab Encodes the receiver using i aCoderi0 .
fi-6552 fs16
fs28 fi-6552 {f3 -} (id)b initWithCoder:b0 (NSCoder *)i aDecoderi0 tab Initializes and returns a new instance from data in i aDecoderi0 .
fi-6552 fs16
fs28 fi-6552
}These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.