Re: Getting the values from the selected row of a table?
Re: Getting the values from the selected row of a table?
- Subject: Re: Getting the values from the selected row of a table?
- From: "I. Savant" <email@hidden>
- Date: Tue, 7 Oct 2008 15:10:27 -0400
On Oct 7, 2008, at 2:55 PM, John Velman wrote:
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.
Why don't you get the selected object from your array controller
directly, then ask it for the value of its primary key attribute?
Otherwise, if you want (or for some reason need) to look it up by
its selected row, you're most likely asking your array controller for
its array, right? Ask it for its -arrangedObjects, *then* determine
the index of that object.
Overall, though, it sounds like you're not quite getting Bindings
(particularly the controller layer's role in Bindings) and could
probably benefit from another perusal of the documentation (or a few
well-chosen questions here).
--
I.S.
_______________________________________________
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