Re: How to programmatically detect that Mission Control is running?

2012-10-23 Thread Ken Thomases
On Oct 22, 2012, at 1:05 AM, Daiwei Li wrote: You should rely on key repeat events to let you know that you need to continue to respond to the key press. For mouse events, you should request periodic events. Could you point me towards the APIs that let me get key repeat and periodic mouse

Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Daiwei Li
Hey Ken, Thanks for your detailed response. It does. Mission Control is part of the management of the desktop environment. The concept of focus doesn't apply to Mission Control. It's at a meta level conceptually above that. It's a means by which a different application can be made active,

Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Daiwei Li
Thanks, Kyle. I've filed a radar as well. Could you let me know if you get a response from Apple? On Fri, Oct 12, 2012 at 9:07 AM, Kyle Sluder k...@ksluder.com wrote: On Oct 12, 2012, at 3:12 AM, Ken Thomases k...@codeweavers.com wrote: This is a problem for me because I don't receive

Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Kyle Sluder
On Oct 21, 2012, at 11:05 PM, Daiwei Li daiwe...@gmail.com wrote: You might try a Quartz event tap at kCGSessionEventTap. I suspect that -addGlobalMonitorForEventsMatchingMask:... is equivalent to kCGAnnotatedSessionEventTap, and maybe that's the wrong place for Mission Control. (Although

Re: How to programmatically detect that Mission Control is running?

2012-10-22 Thread Lee Ann Rucker
On Oct 22, 2012, at 9:09 AM, Kyle Sluder wrote: On Oct 21, 2012, at 11:05 PM, Daiwei Li daiwe...@gmail.com wrote: You might try a Quartz event tap at kCGSessionEventTap. I suspect that -addGlobalMonitorForEventsMatchingMask:... is equivalent to kCGAnnotatedSessionEventTap, and maybe

Re: How to programmatically detect that Mission Control is running?

2012-10-12 Thread Ken Thomases
On Oct 2, 2012, at 2:06 AM, Daiwei Li wrote: When Mission Control runs, it prevents applications from receiving keyboard and mouse events. It also leaves the last application running thinking that it still has focus. It does. Mission Control is part of the management of the desktop

Re: How to programmatically detect that Mission Control is running?

2012-10-12 Thread Kyle Sluder
On Oct 12, 2012, at 3:12 AM, Ken Thomases k...@codeweavers.com wrote: This is a problem for me because I don't receive keyUp or mouseUp events if I start Mission Control with a mouse button or a key held down and my application will behave as if that mouse button or key is held down.