Re: Selecting a cell within NSTableView
Re: Selecting a cell within NSTableView
- Subject: Re: Selecting a cell within NSTableView
- From: Todd Ransom <email@hidden>
- Date: Tue, 6 Jul 2004 16:43:28 -0600
[tableView editColumn: 0 row:[tableView selectedRow] withEvent: nil
select: NO];
TR
On Jul 6, 2004, at 3:25 PM, Frederick C. Lee wrote:
>
Simple question:
>
>
How to you programmatically select a specific cell of a NSTableView?
>
>
Scenario: only the first column is editable, hence double-clicking on
>
the row outside of the first column selects the record.
>
>
An alert is triggered if the editable (1st) column needs data. Hence
>
the need to programmatically select the first column of the row.
>
>
I've tried the NSControl's performClick() but that didn't do anything;
>
I need to simulate a double-click to select the first column.
>
>
Also, I need the coordinates of the particular cell to select.
>
>
This must be a very common feature/procedure. But I haven't yet found
>
the (simple?) solution.
>
>
Any ideas?
>
>
Regards,
>
>
Ric.
>
_______________________________________________
>
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.