• 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: email@hidden
  • Date: Wed, 27 Oct 2010 16:39:42 -0600

Thanks Greg.  Leaks filled!

-koko



On Oct 27, 2010, at 4:35 PM, Greg Guerin wrote:

koko wrote:
although I have implemented a different solution, just to note the data fork (the file) does exist, it is nspath in the first line.


I don't see nspath being used to create a data-fork file in any code you posted. It may be in the code you didn't post, or if I've missed it, please point it out.

I also realize I wasn't clear. After the file exists, i.e. after the file has been created WITHOUT a namedfork pathname, it's wrong to use createFile on the resource fork. You can, however, open the namedfork for writing. I have done this using C stdio (FILE*) and it worked fine. Obviously, that's not one of the NSFileManager functions.

Finally, the most recent code you posted is leaking the malloc'ed buffer holding the resource-fork's bytes.

 -- GG

_______________________________________________

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


_______________________________________________

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: Greg Guerin <email@hidden>)

  • Prev by Date: Re: NSFileManager and Resource Forks
  • Next by Date: Re: NSFileManager and Resource Forks
  • Previous by thread: Re: NSFileManager and Resource Forks
  • Next by thread: Programmatically adjusting NSValueTransformer of a bound NSTextField
  • Index(es):
    • Date
    • Thread