Den 00:53 29. februar 2012 skrev Per Bull Holmen <pbhol...@gmail.com> følgende:
> Yes, it does know it when you establish a binding, I agree. That's > what I am currently doing, in the controller's addObserver method, it > registers the keys, and if there is a corresponding integer parameter > ID for the plug-in, puts it in an NSMapTable. Is this the right place > for the controller to determine that a binding is established? Is > there a more appropriate place? Sorry, I need to clarify a few things, to avoid further misunderstandings. When I write "my controller", I don't mean an NSObjectController, NSArrayController etc. subclass, but an object that corresponds to the controller layer in the MVC model and supports bindings. It happens to be an NSController subclass. Second, it is not in the controller itself I override the addObserver or valueForKey: methods, but in the object that represents what I called the mainBranch in my original post. That is, an object that's contained in the controller and created in the controller's init method. This object is not really meant to have any other KVC-compliant properties than those that correspond to the plug-in's parameters/properties. It acts as a "stand in" since the plug-in can't speak Cocoa. So to speak... :) Per _______________________________________________ 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