Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-04-12 Thread Colas
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 n

Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-26 Thread Mike Abdullah
On 26 Mar 2014, at 10:19, Colas B wrote: > > What is the difference between writing a hard link and just ignore this > particular file that has not changed ? If the file is already there, where > the hard link will be created? > > Envoyé depuis Yahoo Mail pour iPad NSFileWrapper doesn’t sup

Re : Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-26 Thread Colas B
What is the difference between writing a hard link and just ignore this particular file that has not changed ? If the file is already there, where the hard link will be created?https://overview.mail.yahoo.com?.src=iOS";>Envoyé depuis Yahoo Mail pour iPad _

Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-26 Thread Mike Abdullah
On 26 Mar 2014, at 10:13, Colas B wrote: > > Yes indeed, > > I'm using this method to manage additional data in a document. > Want you say Mike frightens me a little bit, I would not want all my memory > used my extra files when I save the document. > > Which options should I use if I want

Re : Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-26 Thread Colas B
Yes indeed, I'm using this method to manage additional data in a document.Want you say Mike frightens me a little bit, I would not want all my memory used my extra files when I save the document.Which options should I use if I want the file wrapper to read/write as less as possible when I updat

Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-25 Thread Graham Cox
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 wrote: > For what it’s worth, I’ve been co

Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-25 Thread Jens Alfke
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 _

Re: Write with NSFileWrapper vs. copy with NSFileManager

2014-03-25 Thread Mike Abdullah
On 25 Mar 2014, at 12:52, Colas B wrote: > Hi, I am having troubles using NSFileWrapper. In order to have a better > understanding of it, I would like to ask you the following question. > > Is there a difference between > > NSURL *referenceURL, *destinationURL ; > > [[[NSFileMana

Write with NSFileWrapper vs. copy with NSFileManager

2014-03-25 Thread Colas B
Hi, I am having troubles using NSFileWrapper. In order to have a better understanding of it, I would like to ask you the following question. Is there a difference between     NSURL *referenceURL, *destinationURL ;          [[[NSFileManager alloc] init] copyItemAtURL:referenceURL