Re: Help with NSData dataWithContentsOfURL
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