I keep the information of what needs to be saved in MyAssistanForSaving and 
when it is time to save (in my case I always save immediately when one attaches 
new files), I write in my file package with the help of NSFileManager in the 
-writeToURL... Method (I don't remember the précis name right now).


> Le 26 mars 2014 à 04:27, Graham Cox <graham....@bigpond.com> a écrit :
> 
> How about when a document is a file package on disk and contains a variety of 
> resources? I've found NSFileWrapper to be a fairly natural fit for that sort 
> of situation. If not, what else would you use?
> 
> --Graham
> 
> 
>> On 26 Mar 2014, at 2:11 pm, Jens Alfke <j...@mooseyard.com> wrote:
>> 
>> For what it’s worth, I’ve been coding with Cocoa for 13 years and have 
>> almost never found a reason to use NSFileWrapper. I think the only times are 
>> when I’ve needed to add image or file attachments to an NSTextView (because 
>> the API basically requires it.)
>> 
>> —Jens
>> _______________________________________________
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/graham.cox%40bigpond.com
>> 
>> This email sent to graham....@bigpond.com
> 

_______________________________________________

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

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

Reply via email to