• 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: WM_KEYDOWN
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WM_KEYDOWN


  • Subject: Re: WM_KEYDOWN
  • From: Murat Konar <email@hidden>
  • Date: Wed, 11 Apr 2007 11:57:04 -0700


On Apr 11, 2007, at 11:35 AM, xcocoa wrote:

Ok, I want to get notified when a keystroke is pressed on a NSTextField and before it is displayed on the screen, thanks

Yes, but for what reason?

And I'm not just being difficult. The way editing of text fields works in Cocoa is not what you might think it is. In particular, NSTextFields aren't responsible for handling keyboard input, the "field editor" of the window in which the NSTextField is displayed handles keyboard input.

You should probably read this:
<http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/ Tasks/UsingWindowFieldEditor.html>


So the best solution really depends on the behavior you are trying to achieve.

_murat
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: WM_KEYDOWN
      • From: xcocoa <email@hidden>
References: 
 >WM_KEYDOWN (From: xcocoa <email@hidden>)
 >Re: WM_KEYDOWN (From: Chris Hanson <email@hidden>)
 >Re: WM_KEYDOWN (From: xcocoa <email@hidden>)

  • Prev by Date: Re: WM_KEYDOWN
  • Next by Date: Re: WM_KEYDOWN
  • Previous by thread: Re: WM_KEYDOWN
  • Next by thread: Re: WM_KEYDOWN
  • Index(es):
    • Date
    • Thread