On Jan 16, 2013, at 14:05 , Quincey Morris 
<quinceymor...@rivergatesoftware.com> wrote:

> On Jan 16, 2013, at 13:36 , Eric Gorr <mail...@ericgorr.net> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to