Re: Figuring out which values are selected in an NSTableView
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