Does anyone have experience intercepting the play/pause and rew/ff
(seek back / seek forward) keys on some keyboards? Particularly, the
MacBook / MacBook Pro keyboards?

This worked for me:

http://www.rogueamoeba.com/utm/archives/MediaKeys.m

Basically, subclass NSApplication, override -sendEvent:, and look for the special keys you want, as defined in <IOKit/hidsystem/ev_keymap.h>. They include play/pause/stop, volume up/down, screen brightness up/dow, etc.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to