Stopping edition of a NSTableView's row after hitting return
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