• 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: When does -[NSWindow sendEvent:] beep?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: When does -[NSWindow sendEvent:] beep? [solved]
      • From: David Catmull <email@hidden>
References: 
 >When does -[NSWindow sendEvent:] beep? (From: David Catmull <email@hidden>)
 >Re: When does -[NSWindow sendEvent:] beep? (From: "Sean McBride" <email@hidden>)
 >Re: When does -[NSWindow sendEvent:] beep? (From: David Catmull <email@hidden>)
 >Re: When does -[NSWindow sendEvent:] beep? (From: "Sean McBride" <email@hidden>)
 >Re: When does -[NSWindow sendEvent:] beep? (From: David Catmull <email@hidden>)
 >Re: When does -[NSWindow sendEvent:] beep? (From: Greg Titus <email@hidden>)
 >Re: When does -[NSWindow sendEvent:] beep? (From: David Catmull <email@hidden>)

  • Prev by Date: Re: When does -[NSWindow sendEvent:] beep?
  • Next by Date: orderBack: only works when frontmost?
  • Previous by thread: Re: When does -[NSWindow sendEvent:] beep?
  • Next by thread: Re: When does -[NSWindow sendEvent:] beep? [solved]
  • Index(es):
    • Date
    • Thread