Re: Override runModalSavePanelForSaveOperation
Re: Override runModalSavePanelForSaveOperation
- Subject: Re: Override runModalSavePanelForSaveOperation
- From: Quincey Morris <email@hidden>
- Date: Wed, 16 Jan 2013 14:12:47 -0800
On Jan 16, 2013, at 14:05 , Quincey Morris <email@hidden> wrote:
> On Jan 16, 2013, at 13:36 , Eric Gorr <email@hidden> wrote:
>
>> (I am also wondering how to properly handle the process to "make sure that any editor registered using the Cocoa Bindings NSEditorRegistration informal protocol has committed its changes.")
>
> NSDocument implements this protocol already (though it's not documented as doing so), so you simply need to send one of the 'commit…' methods to self, I suppose. However, without an API contract beyond what you quoted, it's not absolutely clear it's that simple.
Ugh, serves me right from doing this from memory. The 'commit…' methods are part of NSEditor, not NSEditorRegistration. If NSDocument actually implements NSEditor (maybe it does!), then it's easy. If it doesn't, you could be in for a bumpy ride.
_______________________________________________
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