• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handle keyboard events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Handle keyboard events (From: "Rohit Bhatia" <email@hidden>)

  • Prev by Date: multidimensional arrays
  • Next by Date: Re: Handle keyboard events
  • Previous by thread: Re: Handle keyboard events
  • Next by thread: Re: Handle keyboard events
  • Index(es):
    • Date
    • Thread