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

Re: Help with NSData dataWithContentsOfURL


  • Subject: Re: Help with NSData dataWithContentsOfURL
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 3 Feb 2010 12:46:29 -0600

On Feb 3, 2010, at 8:26 AM, cocoa-dev wrote:

> Thanks Graham, here's what I'm thinking.  The documents for my app are fileWrappers.  Before the document is saved for the first time I can copy the files to a temp folder and during a save move them into the fileWrapper.  I guess I need to just abandon the whole NSData idea altogether.  Too bad.

If you use NSFileWrapper’s initWithURL:options:error method, and then send it -serializedRepresentation, you should be able to get an NSData. But be careful when doing this, because as has already been mentioned, a directory could contain far more data than will fit in RAM.

Charles_______________________________________________

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: Michael Ash <email@hidden>
References: 
 >Help with NSData dataWithContentsOfURL (From: cocoa-dev <email@hidden>)
 >Re: Help with NSData dataWithContentsOfURL (From: Graham Cox <email@hidden>)
 >Re: Help with NSData dataWithContentsOfURL (From: cocoa-dev <email@hidden>)

  • Prev by Date: Re: what is the struct of SecKeychainItemRef?
  • Next by Date: Re: what is the struct of SecKeychainItemRef?
  • Previous by thread: Re: Help with NSData dataWithContentsOfURL
  • Next by thread: Re: Help with NSData dataWithContentsOfURL
  • Index(es):
    • Date
    • Thread