Top-level class defining methods for use when
archiving (encoding) objects to a byte array or
file, and when restoring (decoding) objects.
Generally only subclasses of this class are used
directly -
NSArchiver
,
NSUnarchiver
,
NSKeyedArchiver
,
NSKeyedUnarchiver
, or
NSPortCoder
.
NSPortCoder is used within
the distributed objects framework. For
archiving to/from disk, the
Keyed... classes are preferred for
new implementations, since they provide
greater forward/backward compatibility in
the face of class changes.
Returns a flag indicating whether the receiver
supported keyed coding. the default
implementation returns NO.
Subclasses supporting keyed coding must override
this to return YES.
Decodes array of count structures or
objects of given type, which may be
obtained through the ' @encode(...) '
compile-time operator. Usually this is used
for primitives though it can be used for objects as
well. Objects will be retained and you must release
them.
Returns a pointer to a byte array associated with
aKey. Returns the length of the
data in aLength. This value must previously
have been encoded using
-encodeBytes:length:forKey:
Returns a float value associated
with aKey. This value must previously have
been encoded using
-encodeFloat:forKey:
or
-encodeDouble:forKey:
Precision may be lost (or an exception raised
if the value will not fit in a float)
if the value was encoded using
-encodeDouble:forKey:
,
Decodes a generic object. Usually the class will be
read from the archive, an object will be created
through an alloc call, then that class
will be sent an
[<NSCoding>-initWithCoder:]
message.
Decodes structure or object of given
type, which may be obtained through the '
@encode(...) ' compile-time operator.
Usually this is used for primitives though it can
be used for objects as well, in which case you are
responsible for releasing them.
Encodes array of count
structures or objects of given type,
which may be obtained through the '
@encode(...) ' compile-time operator.
Usually this is used for primitives though it can
be used for objects as well.
Encodes structure or object of given
type, which may be obtained through the '
@encode(...) ' compile-time operator.
Usually this is used for primitives though it can
be used for objects as well.
Returns *Step version, which is not the release
version, but a large number, by specification
<1000 for pre-OpenStep. This implementation
returns a number based on the GNUstep major, minor,
and subminor versions.