• 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
Stopping edition of a NSTableView's row after hitting return
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stopping edition of a NSTableView's row after hitting return


  • Subject: Stopping edition of a NSTableView's row after hitting return
  • From: Jerome Foucher <email@hidden>
  • Date: Fri, 04 Feb 2005 19:00:02 +0100

Hi list,

I'm using a NSTableView with custom cells (subsclass of NSTextFieldCell) which can be edited.

When I double-click on a cell, it's been edited normally. But when I hit enter to validate the change, the edition continues and the next cell si been edited.

I would like the edition to stop. So, inside tableView:setObjectValue:forTableColumn:row:, I tried to call [tableView abortEditing], but this has no effect at all.

Trying to prevent the next cell from been edited in tableView:shouldEditTableColumn:row: is not really possible, as if I return NO for row x, the method will be called for row x+1 and so on.

Can someone tell me how to stop the edition ?
Thanks
Jérome

 _______________________________________________
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: Stopping edition of a NSTableView's row after hitting return
      • From: Larry Fransson <email@hidden>
  • Prev by Date: Re: NSCalendarDate picker widget?
  • Next by Date: iWork & spell checking problems
  • Previous by thread: MEETING: Pittsburgh - Thursday February 10, 7PM
  • Next by thread: Re: Stopping edition of a NSTableView's row after hitting return
  • Index(es):
    • Date
    • Thread