Archiving

From GNUstepWiki
Revision as of 06:40, 22 November 2005 by Quineska (talk | contribs) (Added page with NSCoding details)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Allowing objects to be archived

To permit an object be archived (also known as serialised) it's class needs to implement the NSCoding protocol. This protocol exposes two methods: -encoderWithCoder and -initWithCoder:. By implementing these methods, your object can be serialised/deserialised as well as sent over GNUstep's Distributed objects mechanism.

See the reference manual for more details.