Re: Posting Keyboard Events
Re: Posting Keyboard Events
- Subject: Re: Posting Keyboard Events
- From: Dave DeLong <email@hidden>
- Date: Fri, 05 Sep 2008 21:51:22 -0600
Yes, thank you for asking.
This code is in an IBOutlet for a simple controller object. The
controller has an outlet for the window and a textfield. The first
thing fun on this outlet is the following:
[window makeFirstResponder:textField];
And that does work, because the NSTextField is getting the focus and
blinking cursor, etc.
Dave
On 5 Sep, 2008, at 8:56 PM, Ken Thomases wrote:
On Sep 5, 2008, at 9:15 PM, Dave DeLong wrote:
How on earth can I post system keyboard events (without getting a
beep)?
You know, there are plenty of occasions when typing a letter causes
a beep. In particular, if there's no responder which is ready to
accept keyboard input. Is there a text view with focus at the time
you're posting the event?
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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