Return in NSTableView--how detect a row change?
Return in NSTableView--how detect a row change?
- Subject: Return in NSTableView--how detect a row change?
- From: Mark Dawson <email@hidden>
- Date: Mon, 27 Jun 2005 12:14:07 -0700
The default behavior when the user edits a text item in an NSTableView
seems to be to move to the next row. How do I detect this? -
(IBAction)tableViewSelected: seems to give me the wrong information
When the user presses enter, - (IBAction)tableViewSelected: is called
- (IBAction)tableViewSelected:(id)sender
{
int row = [sender selectedRow];
However, "row" is the row that the enter was done on (say row 0), NOT
the row that is changed to (row 1). It doesn't seem to be called twice
(once for row 0, once for row 1).
How does one detect that row 1 has been selected, if it was selected by
pressing the enter key in row 0?
Thanks!
Mark
_______________________________________________
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