Re: Disable autosave in place for a particular uti / filetype?
Re: Disable autosave in place for a particular uti / filetype?
- Subject: Re: Disable autosave in place for a particular uti / filetype?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 12 Sep 2011 11:26:53 -0700
On Mon, Sep 12, 2011 at 11:23 AM, Gus Mueller <email@hidden> wrote:
>
> On Sep 12, 2011, at 11:19 AM, Kyle Sluder wrote:
>
>> On Mon, Sep 12, 2011 at 10:53 AM, Gus Mueller <email@hidden> wrote:
>>> Is there any way to turn off 10.7's autosave in place for a particular uti/file type? Or maybe turn it on for a single file type?
>>
>> Use a different NSDocument subclass for lossy file types?
>
> Oh, right. Why didn't I think of that? Sometimes the obvious answers are… not so obvious :)
Probably because it's not the "best" solution. We have the same issue
in our apps, where we read and write to a filetype, but the reading
and/or writing process might be lossy (OPML in OmniOutliner is a prime
example). I believe the expected behavior would be to get an untitled
document with the lossily-imported file contents. I believe you get
this behavior for free if you set the Role to "Viewer" in your UTI
declaration.
--Kyle Sluder
_______________________________________________
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