• 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
Re: Getting the values from the selected row of a table?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting the values from the selected row of a table?
      • From: John Velman <email@hidden>
References: 
 >Getting the values from the selected row of a table? (From: John Velman <email@hidden>)

  • Prev by Date: Re: File's owner as target of button-action
  • Next by Date: Re: NSWindowController retain counts, chapter 2
  • Previous by thread: Getting the values from the selected row of a table?
  • Next by thread: Re: Getting the values from the selected row of a table?
  • Index(es):
    • Date
    • Thread