FROM : Alastair Houghton
DATE : Fri Jan 11 15:57:14 2008
On 11 Jan 2008, at 10:47, Thomas Thiriez wrote:
> I have an NSDocument, and in order to save it, I override the method:
> -
> saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo
> :
>
> In order not to lose the original file until I am sure saving was
> completed properly, I save in a temporary file, and when this is done,
> I delete the original file, and rename my temporary file.
Aren't you re-inventing the wheel here? Doesn't the framework already
do this?
Kind regards,
Alastair.
--
http://alastairs-place.net
DATE : Fri Jan 11 15:57:14 2008
On 11 Jan 2008, at 10:47, Thomas Thiriez wrote:
> I have an NSDocument, and in order to save it, I override the method:
> -
> saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo
> :
>
> In order not to lose the original file until I am sure saving was
> completed properly, I save in a temporary file, and when this is done,
> I delete the original file, and rename my temporary file.
Aren't you re-inventing the wheel here? Doesn't the framework already
do this?
Kind regards,
Alastair.
--
http://alastairs-place.net
| Related mails | Author | Date |
|---|---|---|
| Thomas Thiriez | Jan 11, 11:47 | |
| Alastair Houghton | Jan 11, 15:57 | |
| Adam R. Maxwell | Jan 11, 17:24 | |
| Adam R. Maxwell | Jan 11, 23:16 |






Cocoa mail archive

