Re: Bindings: which object+property is being edited?
Re: Bindings: which object+property is being edited?
- Subject: Re: Bindings: which object+property is being edited?
- From: Keary Suska <email@hidden>
- Date: Tue, 17 Mar 2009 15:27:26 -0600
On Mar 17, 2009, at 2:18 PM, Jim Correia wrote:
Given an NSObjectController subclass, or an NSManagedObjectContext
(with chained controllers), is it possible to determine the set of
objects + properties currently being edited?
The NSEditorRegistration protocol is untyped:
- (void)objectDidBeginEditing:(id)editor;
- (void)objectDidEndEditing:(id)editor;
and the editor is often an instance of a private class.
IIRC you can determine which view is being "edited" (i.e. what view an
editor is associated with), but I don't believe Cocoa has any concept
of "properties" being edited. If you can get the view, you can inspect
its bindings, but that seems a rather roundabout way to do something
that might have a smarter approach.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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