• 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 value from table view row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting value from table view row


  • Subject: Re: Getting value from table view row
  • From: Matt Crocker <email@hidden>
  • Date: Sun, 12 Sep 2004 10:26:41 +0100

The method you want is probably

[myTableView selectedRow]

to discover which row the user has selected (you can also work with multiple selected rows if you want - just check the documentation on this method). Assuming your table is populated with data from an NSArray or similar, to get the text from the selected line simply use

[myArray objectAtIndex: [myTableView selectedRow]]

_______________________________________________
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


  • Prev by Date: New ML List Software
  • Next by Date: Re: @protected variable access
  • Previous by thread: Re: Getting value from table view row
  • Next by thread: Re: Timed out fetching data...
  • Index(es):
    • Date
    • Thread