Re: When does -[NSWindow sendEvent:] beep?
Re: When does -[NSWindow sendEvent:] beep?
- Subject: Re: When does -[NSWindow sendEvent:] beep?
- From: David Catmull <email@hidden>
- Date: Tue, 20 Feb 2007 15:13:13 -0800
On Feb 20, 2007, at 3:01 PM, Joar Wingfors wrote:
You might want to have a look at the functionality provided by
CGRemoteOperation.h for this type of work.
I did, and the API isn't as friendly.
Are you sure that the NSStrings are created correctly?
Yes. I originally used stringWithFormat, which didn't work, and I
finally settled on ASCII, which works with regular text. The fact
that (as I just recently discovered) NSWindow is calling moveUp on my
view indicates that at least this much is working. The question is,
why does it do that for my fake events, when it calls keyDown for
real events?
Have you tried something like this?
unichar key = NSUpArrowFunctionKey;
NSString *keyStr = [NSString stringWithCharacters: &key length: 1];
Yes. I got the same results.
--
David Catmull
email@hidden
http://www.uncommonplace.com/
_______________________________________________
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