• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings: which object+property is being edited?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Bindings: which object+property is being edited? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Garbage Collection, Core Foundation, and the -finalize problem
  • Next by Date: UIView hidden - still drawing the subviews?
  • Previous by thread: Bindings: which object+property is being edited?
  • Next by thread: Banding/smoothing problem with drawing angled gradients.
  • Index(es):
    • Date
    • Thread