Re: Return in NSTableView--how detect a row change?
Re: Return in NSTableView--how detect a row change?
- Subject: Re: Return in NSTableView--how detect a row change?
- From: Mark Dawson <email@hidden>
- Date: Mon, 27 Jun 2005 15:17:49 -0700
tableViewSelectionDidChange works. Thanks.
So when would you use the notification "tableViewSelectionDidChange"
and when you would use the action, "tableViewSelected"?
Thanks!
mark
Does the delegate method tableViewSelectionDidChange: not suit your
needs?
-- F
On 27 Jun 2005, at 2:14 PM, Mark Dawson wrote:
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?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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