• 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 [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding to number of selected rows in a table [solved]


  • Subject: Re: binding to number of selected rows in a table [solved]
  • From: James Walker <email@hidden>
  • Date: Wed, 04 Mar 2009 11:39:53 -0800

Thanks to Jerry Krinock, Sean McBride, and Corbin Dunn for the replies. NSTreeController didn't seem to be a good fit for my data, so here's how I did it:

* Add an NSMutableIndexSet* member to my controller, to store the selection.
* Add KVO-friendly accessors for that index set.
* Update the index set (using the setter) in the outlineViewSelectionDidChange: delegate method.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


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


  • Follow-Ups:
    • Re: binding to number of selected rows in a table [solved]
      • From: Jerry Krinock <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: Jerry Krinock <email@hidden>)

  • Prev 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?
  • Next by Date: NSTextField woes
  • Previous by thread: Re: binding to number of selected rows in a table
  • Next by thread: Re: binding to number of selected rows in a table [solved]
  • Index(es):
    • Date
    • Thread