Re: Handle keyboard events
Re: Handle keyboard events
- Subject: Re: Handle keyboard events
- From: Charilaos Skiadas <email@hidden>
- Date: Mon, 14 Mar 2005 09:53:14 -0600
On Mar 14, 2005, at 2:50 AM, Rohit Bhatia wrote:
Hi,
I want to handle the Keyboard Events in a TextField. I want call a
particular function every time a key is pressed.
For this I am using the NSTextDidChangeNotification.
I have added an Observer for this, but I am not able to get the value
present in the TextField.
Is there any other way to do this
Do you reallly want to handle Keyboard events, or just do something
every time the text in the text field changes. For the former, you
should look at:
http://developer.apple.com/documentation/Cocoa/Conceptual/
BasicEventHandling/Concepts/KeyEvents.html
For the latter, I think someone already answered how to get the value
of the text field.
Thanks.
Rohit
Haris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden