• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Return in NSTableView--how detect a row change?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Return in NSTableView--how detect a row change?
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: How to find the manual (or at least the header)
  • Next by Date: Multiple singletons
  • Previous by thread: Re: Why add a nil item to an NSArray ?
  • Next by thread: Re: Return in NSTableView--how detect a row change?
  • Index(es):
    • Date
    • Thread