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

Figuring out which values are selected in an NSTableView


  • Subject: Figuring out which values are selected in an NSTableView
  • From: Andrew White <email@hidden>
  • Date: Wed, 18 May 2005 10:55:02 +1000


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?

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
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: Scott Anguish <email@hidden>
  • Prev by Date: Does the CD predicate syntax support the mod operator?
  • Next by Date: Re: Figuring out which values are selected in an NSTableView
  • Previous by thread: Does the CD predicate syntax support the mod operator?
  • Next by thread: Re: Figuring out which values are selected in an NSTableView
  • Index(es):
    • Date
    • Thread