Instance Method

initWithController:snapshotData:

Initializes a snapshot object associated with a specific controller using a flattened data representation obtained from another snapshot.

Declaration

- (instancetype)initWithController:(GCController *)controller snapshotData:(NSData *)data;

Parameters

controller

The controller to associate the snapshot with.

data

A data object that contains snapshot data.

Return Value

A new snapshot object.

Discussion

The data format for a snapshot is private. Your snapshot object should only be created from flattened data previously obtained from an extended snapshot.

See Also

Converting Between Extended Snapshots and Data Objects

- initWithSnapshotData:

Initializes a snapshot object with the flattened data representation obtained from another snapshot.

Deprecated
snapshotData

Flattens a snapshot into an archivable memory representation.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software