NSTableView edit line, prevent dialog close with return key
NSTableView edit line, prevent dialog close with return key
- Subject: NSTableView edit line, prevent dialog close with return key
- From: Trygve Inda <email@hidden>
- Date: Sat, 19 Mar 2016 15:15:12 -0700
- Thread-topic: NSTableView edit line, prevent dialog close with return key
I have an NSTableView in a sheet. The sheet has an OK button which closes
the sheet (and is the default blue button).
If I am editing a line of text in the NSTableView and press return, I want
the editing to stop and be accepted, but I don't want the sheet to close due
to the OK button accepting the return key as well.
How can I do this?
_______________________________________________
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