• 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: NSFileManager and Resource Forks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager and Resource Forks


  • Subject: Re: NSFileManager and Resource Forks
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 27 Oct 2010 18:45:58 -0400
  • Organization: Rogue Research Inc.

On Wed, 27 Oct 2010 20:08:04 +0200, Jean-Daniel Dupas said:

>No, you don't need the Carbon rsrc manager, you need the CoreServices
>File Manager, which is available to 64 bits app and AFAIK, the only
>supported way to save resource forks.
>Apple even recommends against using ..namedfork. If you want to access
>it at BSD level, that last recommendation i saw was to use xattr (http://
>lists.apple.com/archives/unix-porting/2007/Oct/msg00018.html)
>
>Use FSOpenFork passing the name obtained with FSGetResourceForkName as
>argument to open the rsrc stream of the file, and then, use FSWriteFork
>() to write your data.

And in a Cocoa context, I recommend Nathan Day's Obj-C wrapper NDResourceFork:

<http://github.com/nathanday/ndalias/blob/master/Classes/NDResourceFork.h>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSFileManager and Resource Forks (From: Charles Srstka <email@hidden>)
 >Re: NSFileManager and Resource Forks (From: email@hidden)
 >Re: NSFileManager and Resource Forks (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: NSFileManager and Resource Forks
  • Next by Date: Re: NSApplication nil?
  • Previous by thread: Re: NSFileManager and Resource Forks
  • Next by thread: Re: NSFileManager and Resource Forks
  • Index(es):
    • Date
    • Thread