On Apr 9, 2008, at 5:51 AM, Graham Cox wrote:
How can I force a text cell in NSTableView to stop editing? On 10.4 I could just tell the view's window to make the entire table the first responder and that did the trick, but on 10.5 this no longer works.

I'm trying to do this from within the textDidEndEditing: notification method so that I can suppress the table behaviour that goes to the next row and starts editing there - I just want the text to end editing on typing return and the table view to go back to its previous state - same row selected but no text being edited.


What you describe is now the default 10.5 behavior (which the majority of people want). You can do an AppKitVersion check and just call [super textDidEndEditing:] if you are on Leopard.

FWIW, -abortEditing basically just makes the window first responder (and does some other minor stuff in tableview). It should still work the same as 10.4.

corbin _______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to