• 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
Re: Return in NSTableView--how detect a row change?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return in NSTableView--how detect a row change?


  • Subject: Re: Return in NSTableView--how detect a row change?
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 27 Jun 2005 16:33:48 -0500

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: This email sent to email@hidden
  • Follow-Ups:
    • Re: Return in NSTableView--how detect a row change?
      • From: Mark Dawson <email@hidden>
References: 
 >Return in NSTableView--how detect a row change? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Help with centering custom views in NSTabView
  • Next by Date: Re: Why add a nil item to an NSArray ?
  • Previous by thread: Return in NSTableView--how detect a row change?
  • Next by thread: Re: Return in NSTableView--how detect a row change?
  • Index(es):
    • Date
    • Thread