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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to