Re: Programming hot key
Re: Programming hot key
- Subject: Re: Programming hot key
- From: Eric Schlegel <email@hidden>
- Date: Tue, 03 Nov 2009 20:06:50 -0800
On Nov 3, 2009, at 6:10 PM, Symadept wrote:
> Hi,
>
> Anybody tell me can I program a hot key which shall not block the other apps
> responding to it.
>
> Lets say I have registered hot key Command+P for some operation for my app,
> it shall not block the other apps responding to it.
You should probably use the CGEventTap API to implement this. In SnowLeopard, you could also use +[NSEvent addGlobalMonitorForEventsMatchingMask]. In either case, however, I believe you'll need the user to enable access for assistive devices in the Universal Access preference pane.
-eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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