Re: Updating Content of NSFileWrapper
Re: Updating Content of NSFileWrapper
- Subject: Re: Updating Content of NSFileWrapper
- From: Quincey Morris <email@hidden>
- Date: Tue, 16 Sep 2014 02:33:38 +0000
On Sep 15, 2014, at 19:12 , Charles Jenkins <email@hidden> wrote:
> // What the heck do I do here? How to I update fw's contents?
You do the “obvious” thing — remove the existing file wrapper and create a new one.
The clearest logic for this would be:
If this file’s content is modified, remove any existing file wrapper.
Then, if there’s no file wrapper, create the file data and create the file wrapper.
So there’s no real difference between the create and the update case.
_______________________________________________
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