Re: NSDocument save incremental file package in-place
Re: NSDocument save incremental file package in-place
- Subject: Re: NSDocument save incremental file package in-place
- From: Trygve Inda <email@hidden>
- Date: Sat, 01 Mar 2014 16:26:03 -0800
- Thread-topic: NSDocument save incremental file package in-place
>
> On 1 Mar 2014, at 23:26, Trygve Inda <email@hidden> wrote:
>
>> I have a top level FileWrapper which contains the wrappers for all my files.
>> Is there any sample code that would help me figure out the right way to do
>> this?
>>
>> [NSFileWrapper writeToURL:options:originalContentsURL:error:]
>>
>> Seems to call my method to get the top level fileWrapper.
>>
>> When I set a breakpoint, I see the writeToURL is a temp folder and the
>> originalContentsURL is indeed the file package on disk.
>>
>> So why isn't it hard linking?
>
> Hmmm, what are options flags there as well?
>
>
Ah my mistake...
-[NSFileWrapper writeToURL:options:originalContentsURL:error:]
Is not being called.
What is called is (in my NSDocument subclass)
writeToURL:ofType:forSaveOperation:originalContentsURL:error:
The writeURL is a temp file and the original URL is my original file package
How would I work this to use
-[NSFileWrapper writeToURL:options:originalContentsURL:error:]
??
Trygve
_______________________________________________
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