[vlc-commits] macosx: fixed media key support on OS X 10.6+

Felix Paul Kühne git at videolan.org
Sun Apr 17 19:59:22 CEST 2011


vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Apr 17 19:59:04 2011 +0200| [4d6142195cd01dd55cb7ccac529c5e1bf439dc6a] | committer: Felix Paul Kühne

macosx: fixed media key support on OS X 10.6+

Note that this rework changes the current behavior: if VLC is in the background, the keys still control it, however if you start another key user (such as iTunes, QTP, etc.), it won't interfere and control the other app. That's why macosx-mediakeys-background was removed.

This commits also adds a bunch of missing delegate declarations

Thanks to Spotify for releasing their code.

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=4d6142195cd01dd55cb7ccac529c5e1bf439dc6a
---

 NEWS                                               |    2 +
 .../English.lproj/Preferences.nib/designable.nib   |   93 +-----
 .../English.lproj/Preferences.nib/keyedobjects.nib |  Bin 107954 -> 107347 bytes
 .../package/macosx/vlc.xcodeproj/project.pbxproj   |    9 +
 modules/gui/macosx/Modules.am                      |    4 +
 modules/gui/macosx/SPInvocationGrabbing.h          |   41 +++
 modules/gui/macosx/SPInvocationGrabbing.m          |  138 +++++++++
 modules/gui/macosx/SPMediaKeyTap.h                 |   46 +++
 modules/gui/macosx/SPMediaKeyTap.m                 |  309 ++++++++++++++++++++
 modules/gui/macosx/controls.h                      |    2 -
 modules/gui/macosx/embeddedwindow.h                |    2 +-
 modules/gui/macosx/intf.h                          |   22 +-
 modules/gui/macosx/intf.m                          |  160 +++++------
 modules/gui/macosx/macosx.m                        |    6 -
 modules/gui/macosx/misc.h                          |    2 +-
 modules/gui/macosx/misc.m                          |    4 +-
 modules/gui/macosx/playlist.h                      |    2 +-
 modules/gui/macosx/playlistinfo.h                  |    2 +-
 modules/gui/macosx/prefs_widgets.h                 |   14 +-
 modules/gui/macosx/sidebarview.h                   |    2 +-
 modules/gui/macosx/simple_prefs.h                  |    3 +-
 modules/gui/macosx/simple_prefs.m                  |    6 -
 22 files changed, 657 insertions(+), 212 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commitdiff;h=4d6142195cd01dd55cb7ccac529c5e1bf439dc6a


More information about the vlc-commits mailing list