Re: When does -[NSWindow sendEvent:] beep?
Re: When does -[NSWindow sendEvent:] beep?
- Subject: Re: When does -[NSWindow sendEvent:] beep?
- From: Bob Smith <email@hidden>
- Date: Tue, 20 Feb 2007 15:57:16 -0800
It seems like NSEvent's +keyEventWithType: must be creating an event
object that is in some subtle way different than the one generated
when a real key is pressed. I'd NSLog() the event info in -keyDown
for a real arrow key event, and compare it to what comes from
+keyEventWithType: to see what's not the same. One thing does jump
out at me: [NSGraphicsContext currentContext]. Is the GC the same
when you programmatically generate the event vs. when a real key
event occurs? Of course I can't see why that should matter, but it
could alter the way NSWindow processes the event.
Bob S.
On Feb 20, 2007, at 3:31 PM, David Catmull wrote:
On Feb 20, 2007, at 3:19 PM, Greg Titus wrote:
It is an action method. See the declaration in NSResponder.h under
"Standard bindable commands".
Ah, you're right. I was looking at mouseUp by mistake. Sorry.
But I still don't know why moveUp is getting called in this
situation, instead of keyDown.
--
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
_______________________________________________
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