• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Write with NSFileWrapper vs. copy with NSFileManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Write with NSFileWrapper vs. copy with NSFileManager


  • Subject: Re: Write with NSFileWrapper vs. copy with NSFileManager
  • From: Colas <email@hidden>
  • Date: Sat, 12 Apr 2014 13:16:35 +0200

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 <email@hidden> 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 <email@hidden> 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 (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
>

_______________________________________________

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


  • Prev by Date: Re: NSBox line with autolayout
  • Next by Date: resizing image returned from NSDraggingInfo -draggedImage
  • Previous by thread: Re: Exception going "uncaught" despite active @catch handler
  • Next by thread: resizing image returned from NSDraggingInfo -draggedImage
  • Index(es):
    • Date
    • Thread