• 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: Binding (KVC/KVO) for C struct datatypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding (KVC/KVO) for C struct datatypes


  • Subject: Re: Binding (KVC/KVO) for C struct datatypes
  • From: Scott Stevenson <email@hidden>
  • Date: Thu, 4 Oct 2007 17:06:17 -0700


On Oct 4, 2007, at 11:48 AM, Charles Steinman wrote:

2. You can't bind a keypath even if all the segments
in it are KVC-compliant. The binding argument has to
be an exposed binding of the object you're sending the
message to.

I don't believe this is true. In fact, mmalc specifically calls this out on his bindings page under the "manual bindings" section:


"The backgroundColor variable is not exposed as an available binding in Interface Builder; you can nevertheless establish your own binding programatically. There is no need to subclass NSTextField, override +exposeBinding".

<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>

That said, not all properties can be bound for all classes, but it's not exclusively determined by which bindings are exposed.

    - Scott
_______________________________________________

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: 
 >Re: Binding (KVC/KVO) for C struct datatypes (From: Charles Steinman <email@hidden>)

  • Prev by Date: multiple methods named 'xxx' found.
  • Next by Date: Re: How to have a shared integer variable in application
  • Previous by thread: Re: Binding (KVC/KVO) for C struct datatypes
  • Next by thread: Z_OPT field in coredata sqlite database. What it is for?
  • Index(es):
    • Date
    • Thread