Re: NSDocument autosave doesn't show as edited
Re: NSDocument autosave doesn't show as edited
- Subject: Re: NSDocument autosave doesn't show as edited
- From: Kyle Sluder <email@hidden>
- Date: Wed, 23 May 2012 13:01:24 -0400
On May 23, 2012, at 12:43 PM, Martin Hewitson <email@hidden> wrote:
>
> On May 23, 2012, at 05:30 PM, Kevin Perry wrote:
>
>> Does "Revert to Last Saved" become available after saving and editing? Which NSDocument methods are you overriding?
>
> I override:
>
> -autosavesInPlace
> -readFromURL:ofType:error:
> -writeToURL:ofType:error:
> -saveDocument:
>
> plus some others (like -printDocument) which I don't think are relevant.
Do you override -undoManager or call -setHasUndoManager:?
It's probably a good idea to list all NSDocument methods you are overriding, regardless of whether you think they're relevant.
--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