Getting the values from the selected row of a table?
Getting the values from the selected row of a table?
- Subject: Getting the values from the selected row of a table?
- From: John Velman <email@hidden>
- Date: Tue, 7 Oct 2008 11:55:21 -0700
I need to get the value of the primary key (shown in the table) of the
selected row of my table, no matter how the table is sorted interactively.
I'm able to get the selected row index, but this seems to give the
"geographic" index of the selected row in the table, as sorted.
So far, I've solved my problem by ensuring that the table source is sorted
by it's primary key, and blocking sorting in the table itself. This is not
too bad for my application (in it's current state, at least), but
eventually I'd like to be able to sort the table interactively and map the
selection back to the original data.
I'm using IB and key value binding, and registering a notification to get
the fact of selection did change.
Thanks,
John Velman
_______________________________________________
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