Re: tableview data retrieval
Re: tableview data retrieval
- Subject: Re: tableview data retrieval
- From: "Mohammad F. Haque" <email@hidden>
- Date: Thu, 4 Apr 2002 00:41:32 -0500
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. does the idea go back to the
- (void)tableView:(NSTableView *)tableView setObjectValue:(id)object
forTableColumn:(NSTableColumn *)column row:(int)row
On Tuesday, April 2, 2002, at 10:09 AM, Francois Reboursier wrote:
>
On 4/2/02 6:22 AM, "Annie Felix" <email@hidden> wrote:
>
>
> Hi all,
>
>
>
> I have a table which is editable.On completion of text editing i
>
> require
>
> the data entered in the column to be captured.I am using
>
> NSTextDidEndEditingNotification to determine the end of text editing.
>
> Now how do i capture the data which i have entered.When I click enter
>
> which determines the end of textediting, the original value is
>
> displayed
>
> in the table.
>
>
There's no need to use a notification for this.
>
>
Use the following method:
>
>
- (void)tableView:(NSTableView *)tableView setObjectValue:(id)object
>
forTableColumn:(NSTableColumn *)column row:(int)row
>
>
It's called automatically when you hit the "Return" key.
>
_______________________________________________
>
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.
_______________________________________________
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.