+resourceFork
Returns an autoreleased GMResourceFork
-addResourceWithType:resID:name:data:
Adds a resource to the resource fork by specifying components.
-addResource:
Adds a resource to the resource fork.
-data
Constucts the raw data for the resource fork.

resourceFork


Returns an autoreleased GMResourceFork

+ (GMResourceFork *)resourceFork; 


addResourceWithType:resID:name:data:


Adds a resource to the resource fork by specifying components.

- (void)addResourceWithType:(ResType)resType resID:(ResID)resID name:(NSString *)name data:(NSData *)data; 
Parameters
resType
The four-char code for the resource, e.g. 'icns'
resID
The ID of the resource, e.g. 256 for webloc 'url' contents
name
The name of the resource; may be nil (retained)
data
The raw data for the resource (retained)
Discussion

See CarbonCore/Finder.h for some common resource identifiers.


addResource:


Adds a resource to the resource fork.

- (void)addResource:(GMResource *)resource; 
Parameters
resource
The resource to add.
Discussion

See CarbonCore/Finder.h for some common resource identifiers.


data


Constucts the raw data for the resource fork.

- (NSData *)data; 
Return Value

NSData for the resource fork containing all added resources.

Last Updated: Monday, November 17, 2008