Re: The resource fork
Re: The resource fork
- Subject: Re: The resource fork
- From: April Gendill <email@hidden>
- Date: Mon, 25 Aug 2003 00:36:01 -0700
Thanks :)
On Monday, August 25, 2003, at 12:11 AM, Jeff Nouwen wrote:
On Monday, August 25, 2003, at 12:43 AM, April Gendill wrote:
Some os 9 applications saved files with data in the resource fork...
Is it possible to access that information from a cocoa application at
all?
Yes, you can access resource-based data from a Cocoa application.
Specifically:
FSRef ref;
NSString* theFilePath; // the full path of the resources file
if (FSPathMakeRef ([theFilePath fileSystemRepresentation,&ref,NULL])
== noErr)
{
short res = FSOpenResFile (&ref,fsRdPerm);
if (ResError() == oErr)
{
// Call Resource Manager functions to read resources.
CloseResFile(res);
}
}
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CarbonCocoaDoc/cci_chap3/chapter_3_section_3.html#//apple_ref/doc/uid/
20001516/BCIBHECF>
- Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.