• 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: Resource fork question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resource fork question


  • Subject: Re: Resource fork question
  • From: Chris parker <email@hidden>
  • Date: Tue, 2 Mar 2004 13:53:23 -0800

On Mar 2, 2004, at 1:17 PM, Marc Pergand wrote:

I was thinking that these icon previews are stored in the resource fork.

you're right, in a icns resource.


it seems that it isn't possible to copy a file's resource fork from Cocoa.

No, only carbon API.

While not all metadata is preserved, the resource fork is copied correctly using NSFileManager's copyPath:toPath:handler: method.

This will handle the cases where you're copying to/from NFS correctly as well.

.chris

--
Chris Parker
Cocoa Frameworks
Apple Computer, Inc.
_______________________________________________
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: Resource fork question (From: Marc Pergand <email@hidden>)

  • Prev by Date: NSArray cluster class membership
  • Next by Date: Re: Global vars vs IB
  • Previous by thread: Re: Resource fork question
  • Next by thread: Re: Resource fork question
  • Index(es):
    • Date
    • Thread