Distinguishing between return and enter in NSTextField
Distinguishing between return and enter in NSTextField
- Subject: Distinguishing between return and enter in NSTextField
- From: Rick Mann <email@hidden>
- Date: Thu, 3 Sep 2009 10:54:26 -0700
Hi. I'd like to insert a new line when the user presses return in an
NSTextField, but take completely custom action when they press Enter.
Is the only way to do this to subclass NSTextField and override the
NSResponder keyDown: method?
TIA,
Rick
_______________________________________________
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