• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: The resource fork
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: The resource fork (From: Jeff Nouwen <email@hidden>)

  • Prev by Date: Re: The resource fork
  • Next by Date: Still can logout using keys when Apple menu disabled!
  • Previous by thread: Re: The resource fork
  • Next by thread: Re: The resource fork
  • Index(es):
    • Date
    • Thread