GMAppleDouble


Superclass: NSObject
Declared In: GMAppleDouble

Discussion

This class can be used to construct raw AppleDouble data.



Methods

+appleDouble
An autoreleased empty GMAppleDouble file
+appleDoubleWithData:
An autoreleased GMAppleDouble file.
-addEntry:
Adds an entry to the AppleDouble file.
-addEntryWithID:data:
Adds an entry to the AppleDouble file with ID and data.
-addEntriesFromAppleDoubleData:
Adds entries based on the provided raw AppleDouble file data.
-entries
The set of GMAppleDoubleEntry present in this GMAppleDouble.
-data
Constructs raw data for the AppleDouble file.

appleDouble


An autoreleased empty GMAppleDouble file

+ (GMAppleDouble *)appleDouble; 


appleDoubleWithData:


An autoreleased GMAppleDouble file.

+ (GMAppleDouble *)appleDoubleWithData:(NSData *)data; 
Parameters
data
Raw AppleDouble file data.
Discussion

The GMAppleDouble is pre-filled with entries from the raw AppleDouble file data.


addEntry:


Adds an entry to the AppleDouble file.

- (void)addEntry:(GMAppleDoubleEntry *)entry; 
Parameters
entry
The entry to add


addEntryWithID:data:


Adds an entry to the AppleDouble file with ID and data.

- (void)addEntryWithID:(GMAppleDoubleEntryID)entryID data:(NSData *)data; 
Parameters
entryID
The ID of the entry to add
data
The raw data for the entry to add (retained)


addEntriesFromAppleDoubleData:


Adds entries based on the provided raw AppleDouble file data.

- (BOOL)addEntriesFromAppleDoubleData:(NSData *)data; 
Parameters
data
Raw AppleDouble file data
data
The raw data for the entry to add (retained)
Return Value

YES if the provided data was parsed correctly.

Discussion

This will attempt to parse the given data as an AppleDouble file and add all entries found.


entries


The set of GMAppleDoubleEntry present in this GMAppleDouble.

- (NSArray *)entries; 
Return Value

An array of GMAppleDoubleEntry.


data


Constructs raw data for the AppleDouble file.

- (NSData *)data; 
Return Value

The raw data for an AppleDouble file represented by this GMAppleDouble.

Last Updated: Monday, November 17, 2008