picofuse-objc

Instance Methods | List of all members
<NXArchiving> Protocol Reference

Objects which can be written to an archive and read back. More...

#import <Foundation/Foundation.h>

Inheritance diagram for <NXArchiving>:
Inheritance graph
[legend]

Instance Methods

(BOOL) - encodeWithArchive:
 Writes the object's values to an archive, with the encode methods. More...
 
(id) - initWithArchive:
 Initializes an object from an archive, with the decode methods. More...
 

Detailed Description

Objects which can be written to an archive and read back.

NXString, NXNumber, NXNull, NXArray, NXMap, NXData and NXDate can be archived as well, without adopting it, as JSON's own types.

Definition at line 29 of file NXArchive.h.

Method Documentation

◆ encodeWithArchive:()

- (BOOL) encodeWithArchive: (NXArchive *)  archive

Writes the object's values to an archive, with the encode methods.

Returns
YES, or NO if it couldn't, which fails the archive.

◆ initWithArchive:()

- (id) initWithArchive: (NXArchive *)  archive

Initializes an object from an archive, with the decode methods.

Returns
The object, or nil if it couldn't, which fails the archive. Check -[NXArchive failed] once the values are decoded, and return nil if it has.

The documentation for this protocol was generated from the following file: