Re: Escape in NSTableView cell
Re: Escape in NSTableView cell
- Subject: Re: Escape in NSTableView cell
- From: Dave Reed <email@hidden>
- Date: Mon, 07 Feb 2011 11:05:58 -0500
On Feb 7, 2011, at 9:49 AM, Ivan C Myrvold wrote:
> I have developed an application with a table view and text edit cell. When I press escape from a table view cell, I want the cell to lose focus and end editing. Instead I get a list of words in the cell. See picture at http://www.myrvold.org/cocoa/images/editcell_escape.png
>
> How can I avoid the list and get the functionality I want?
See this:
http://www.cocoabuilder.com/archive/cocoa/176709-esc-to-cancel-editing-in-tableview.html
Subclassing NSTableView and overriding cancelOperation appears to work. I don't know if there's a better way though.
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden