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: John Velman <email@hidden>
- Date: Tue, 7 Oct 2008 13:23:19 -0700
Well, you're undoubtedly right that I'm "not quite getting bindings" yet,
but I'm a lot closer than I was. I'll ponder what you've suggested and see
whether I "get it" or can come up with some better questions!
Thanks,
John V.
On Tue, Oct 07, 2008 at 03:10:27PM -0400, I. Savant wrote:
> 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