Re: ESC to cancel editing in tableview
Re: ESC to cancel editing in tableview
- Subject: Re: ESC to cancel editing in tableview
- From: Paul Kim <email@hidden>
- Date: Fri, 5 Jan 2007 19:18:29 -0500
This is what I use (which Sean also suggested):
- (void)cancelOperation:(id)sender
{
if ([self currentEditor] != nil)
{
[self abortEditing];
// We lose focus so re-establish
[[self window] makeFirstResponder:self];
}
}
Paul Kim
------------------------------------
Chief Noodler - Noodlesoft
email@hidden
http://www.noodlesoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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