• 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: Calling GetCurrentEventKeyModifiers in a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling GetCurrentEventKeyModifiers in a Cocoa app


  • Subject: Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
  • From: Glen Simmons <email@hidden>
  • Date: Tue, 25 Oct 2005 12:47:26 -0500

On Oct 24, 2005, at 4:06 PM, Eric Schlegel wrote:


On Oct 24, 2005, at 1:36 PM, Glen Simmons wrote:


Will GetCurrentEventKeyModifiers return an accurate result when called from a Cocoa app? We have a case where it doesn't appear to.


I wouldn't expect it to return accurate results. GetCurrentEventKeyModifiers returns the modifiers of the event most recently dispatched via the Carbon event dispatcher target, and AppKit doesn't use that event dispatching path - it uses the AppKit event dispatching path. The only exception might be if an Carbon window was open and was the main window inside the Cocoa app.


-eric


Thanks for confirming that.

Glen

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Calling GetCurrentEventKeyModifiers in a Cocoa app (From: Glen Simmons <email@hidden>)
 >Re: Calling GetCurrentEventKeyModifiers in a Cocoa app (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Can NSBeginAlertSheet call be dismissed?
  • Next by Date: Current -in-drawing NSCell (NSOutlineView)
  • Previous by thread: Re: Calling GetCurrentEventKeyModifiers in a Cocoa app
  • Next by thread: Problem printing a window
  • Index(es):
    • Date
    • Thread