• 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: Help needed with the key down event in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed with the key down event in NSTextField


  • Subject: Re: Help needed with the key down event in NSTextField
  • From: Chris Suter <email@hidden>
  • Date: Wed, 21 Jun 2006 17:18:36 +1000

On 21/06/2006, at 5:13 PM, Vinay Prabhu wrote:

Hi,

Thanks for the help.

I have customized the NSTextField to display only numeric values from 0 -
255.
Now I want to provide the up and down arrow support, so that when I click up
arrow the
value should increment and for down arrow the value should decrement.


Since I have overridden the keyUp method, I can get it to work for one click
at a time.
If the up or down arrow key is pressed and held, the values in the text
field should continuously change.
To implement this I need to get the keyDown event. This is where I am facing
the problem.


Regards
Vinay

What's wrong with NSStepper? _______________________________________________ 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: 
 >RE: Help needed with the key down event in NSTextField (From: Vinay Prabhu <email@hidden>)

  • Prev by Date: RE: Help needed with the key down event in NSTextField
  • Next by Date: How to add menu to menu bar
  • Previous by thread: RE: Help needed with the key down event in NSTextField
  • Next by thread: Find local IP address from an NSStream
  • Index(es):
    • Date
    • Thread