• 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: Open Resource File with Cocoa Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Resource File with Cocoa Path


  • Subject: Re: Open Resource File with Cocoa Path
  • From: Charles Srstka <email@hidden>
  • Date: Thu, 11 Apr 2002 11:35:31 -0500

I was told some time ago that it's better to use ..namedfork/rsrc than /rsrc...

On Thursday, April 11, 2002, at 09:29 AM, Adam Atlas wrote:

Let's say you have a file with a resource fork and a data fork. Mac OS X sees it (let's call it myFile) as:

myFile: The data fork.
myFile/rsrc: (yes, access it as a directory) The resource fork.
myFile/data: The data fork again.

I believe you can just do:
NSData *myResourceFile=[[NSData alloc] initWithContentsOfFile:@"/SomePath/myResourceFile/rsrc"];

It's actually possible to do this in the Terminal:
% cat /SomePath/myResourceFile/rsrc

The shell only sees it as one file, the data fork, so the autocompletion found in most shells can be confusing for this.

--
Adam Atlas
Atomm Software
http://www.atommic.com
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Open Resource File with Cocoa Path
      • From: Andrew Mortensen <email@hidden>
References: 
 >Re: Open Resource File with Cocoa Path (From: Adam Atlas <email@hidden>)

  • Prev by Date: Perry Gregg Cross Platform Programmer Available
  • Next by Date: Re: NSPrintInfo question ? (points)
  • Previous by thread: Re: Open Resource File with Cocoa Path
  • Next by thread: Re: Open Resource File with Cocoa Path
  • Index(es):
    • Date
    • Thread