• 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: Question about KVC-compliance and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about KVC-compliance and bindings


  • Subject: Re: Question about KVC-compliance and bindings
  • From: Per Bull Holmen <email@hidden>
  • Date: Wed, 29 Feb 2012 01:38:55 +0100

Den 00:53 29. februar 2012 skrev Per Bull Holmen <email@hidden> 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 (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: 
 >Question about KVC-compliance and bindings (From: Per Bull Holmen <email@hidden>)
 >Re: Question about KVC-compliance and bindings (From: Keary Suska <email@hidden>)
 >Re: Question about KVC-compliance and bindings (From: Per Bull Holmen <email@hidden>)
 >Re: Question about KVC-compliance and bindings (From: Keary Suska <email@hidden>)
 >Re: Question about KVC-compliance and bindings (From: Per Bull Holmen <email@hidden>)

  • Prev by Date: Re: Question about KVC-compliance and bindings
  • Next by Date: How are views supposed to reload after being nillified by memory warnings?
  • Previous by thread: Re: Question about KVC-compliance and bindings
  • Next by thread: Re: Question about KVC-compliance and bindings
  • Index(es):
    • Date
    • Thread