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