Re: tableview data retrieval
Re: tableview data retrieval
- Subject: Re: tableview data retrieval
- From: Ondra Cada <email@hidden>
- Date: Thu, 4 Apr 2002 13:09:47 +0200
On Thursday, April 4, 2002, at 07:41 , Mohammad F. Haque wrote:
if i got a tableview with 4 columns, the first column has an identifier
of "log_id". when a user selects a row (just selecting a row, no
editing), how do i grab what value is being held in the "log_id" column
of that row.
Just ask the tableview which row is selected, and (if any) ask its data
source for the appropriate value. It's that easy:
[[tableView dataSource] tableView:tableView
objectValueForTableColumn:[tableView tableColumnWithIdentifier:@"log_id"]
row:[tableView selectedRow]];
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.