How to get a message when RETURN is pressed in a NSTextField
How to get a message when RETURN is pressed in a NSTextField
- Subject: How to get a message when RETURN is pressed in a NSTextField
- From: Markus Spoettl <email@hidden>
- Date: Mon, 23 Jun 2008 20:38:28 -0700
Hello List,
this is almost too embarrassing to ask but I can't for the life of
me figure out how to get notified (on a NSWindowController class) when
RETURN was pressed in a certain NSTextField sitting in on the window
of that controller.
I get -insertNewLine: when return is pressed on anything but the text
field. For the text field it's not invoked, so there must be another
message. Which? keyDown or keyUp is not called.
I'm using Xcode 3.0 on OS X 10.5.3
Thanks for your help!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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