• 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 to number of selected rows in a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding to number of selected rows in a table


  • Subject: Re: binding to number of selected rows in a table
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 4 Mar 2009 11:35:57 -0800


On 2009 Mar 04, at 08:21, Corbin Dunn wrote:

Cocoa does not support binding to view properties like this. Most are not KVC compliant.

But you can make them KVO-compliant as I described yesterday. It's a slight kludge, but I think of it as a necessary "bridge" from the old world of dataSource to the new world of bindings.


So, if you are already using NSTreeController, observe it instead of NSOutlineView. Otherwise, either replace your dataSource with NSTreeController, or else use the bridge/kludge.

_______________________________________________

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: 
 >binding to number of selected rows in a table (From: James Walker <email@hidden>)
 >Re: binding to number of selected rows in a table (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Odd crash
  • Next by Date: Re: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell?
  • Previous by thread: Re: binding to number of selected rows in a table
  • Next by thread: Text scrolling with Finder-like label editing. Will a raw field editor (NSTextView) do this, or should I use an NSTextField or NSTextFieldCell?
  • Index(es):
    • Date
    • Thread