Re: Getting value from table view row
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