• 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
Help with NSData dataWithContentsOfURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with NSData dataWithContentsOfURL


  • Subject: Help with NSData dataWithContentsOfURL
  • From: cocoa-dev <email@hidden>
  • Date: Wed, 3 Feb 2010 09:08:21 -0500

I have an app that attaches a file to a document like when you attach a file to mail.  I use the following to store the file as data in an iVar:

fileData = [NSData dataWithContentsOfURL:url options:NSDataReadingUncached error:(NSError **)errorPtr];

This works fine for regular files but not for fileWrappers or folders (EXEC_BAD_ACCESS).  I haven't found anything in the documentation that will work and am now thinking I need to use an alternate strategy like storing the files in a fileWrapper and abandoning storing them as data all together.

Is there an alternative to capture the data of a wrapper and a folder?

Thanks_______________________________________________

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

  • Follow-Ups:
    • Re: Help with NSData dataWithContentsOfURL
      • From: Fritz Anderson <email@hidden>
    • Re: Help with NSData dataWithContentsOfURL
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Synthesize NSMutableString retain count question
  • Next by Date: Re: Help with NSData dataWithContentsOfURL
  • Previous by thread: Re: Synthesize NSMutableString retain count question
  • Next by thread: Re: Help with NSData dataWithContentsOfURL
  • Index(es):
    • Date
    • Thread