Re: seamlessly saving to a different file
Re: seamlessly saving to a different file
- Subject: Re: seamlessly saving to a different file
- From: Steve Mills <email@hidden>
- Date: Mon, 15 Jul 2013 13:38:44 -0500
On Jul 15, 2013, at 12:44:33, Steve Mills <email@hidden> wrote:
> On Jul 15, 2013, at 11:00:14, Mike Abdullah <email@hidden> wrote:
>
>> NSDocument has an interesting method, -initForURL:withContentsOfURL:ofType:error:
>>
>> Can you have document opening call this instead, or follow the same pattern, to achieve what you want?
>
> That just might be the ticket I need to board this particular train to Crazytown. It's working and is less hacky than my previous hack. Thanks.
BTW, in case anybody else comes across this thread and tries the same thing, I found I also need to [self setAutosavedContentsFileURL:nil], otherwise closing the doc without saving changes will cause Cocoa to delete the original file. Doh!
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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