• 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: Figuring out which values are selected in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Figuring out which values are selected in an NSTableView


  • Subject: Re: Figuring out which values are selected in an NSTableView
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 17 May 2005 21:32:10 -0400


On May 17, 2005, at 8:55 PM, Andrew White wrote:


Have an NSTableView, contents of which are automatically populated using bindings.


Can get the set of rows selected using selectedRowIndexes.

Is there a way to directly get the *values* that are displayed in a particular cell (row & column)? I realise that I can use the selectedRowIndexes to index into the original array used to generate the table and then find the correct sub-entry from there, but I'd rather just use the value if I can.

And what about a sorted table? Does the table transparently preserve the rowIndexes?

if you're using bindings, just get the selected objects directly using the mysteriously named -selectedObjects


then you can pick the values out of that returned selection (maybe using array operators if appropriate)



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Figuring out which values are selected in an NSTableView
      • From: Denis Stanton <email@hidden>
References: 
 >Figuring out which values are selected in an NSTableView (From: Andrew White <email@hidden>)

  • Prev by Date: Figuring out which values are selected in an NSTableView
  • Next by Date: NSCharacterSet and NSCaseInsensitiveSearch
  • Previous by thread: Figuring out which values are selected in an NSTableView
  • Next by thread: Re: Figuring out which values are selected in an NSTableView
  • Index(es):
    • Date
    • Thread