Re: WM_KEYDOWN
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