• 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: Play/Pause, rew/ff keys ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Play/Pause, rew/ff keys ...


  • Subject: Re: Play/Pause, rew/ff keys ...
  • From: Bill Monk <email@hidden>
  • Date: Tue, 11 Nov 2008 11:01:07 -0600

   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 (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


  • Follow-Ups:
    • Re: Play/Pause, rew/ff keys ...
      • From: "I. Savant" <email@hidden>
    • Re: Play/Pause, rew/ff keys ...
      • From: Ben Lachman <email@hidden>
  • Prev by Date: How are we supposed to retrieve the generic bundle icon?
  • Next by Date: NSTokenField Represented Objects
  • Previous by thread: Re: Play/Pause, rew/ff keys ...
  • Next by thread: Re: Play/Pause, rew/ff keys ...
  • Index(es):
    • Date
    • Thread