Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: ESC to cancel editing in tableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ESC to cancel editing in tableview



If you've subclassed NSTableView, implement the - (void) textDidEndEditing:(NSNotification *)notification delegate method to look for the keys contained in the notification:

[[notification userInfo] valueForKey:@"NSTextMovement"]


-- mikey

On 05 Jan, 2007, at 18:25, Benjámin Salánki wrote:

Hi there,

I have a subclassed NSTableView in which I want to cancel the editing of a cell by pressing ESC. Could someone point me into the right direction please? I could not find anything in the archives (or maybe i'm just not too good at searching).

Thanks,
Ben
_______________________________________________

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:
40bungie.org


This email sent to email@hidden

_______________________________________________

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


References: 
 >ESC to cancel editing in tableview (From: Benjámin Salánki <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.