nevyn / SPMediaKeyTap

[Cocoa] SPMediaKeyTap is a global event tap for the play/pause, prev and next keys on the keyboard.
http://overooped.com/post/2593597587/mediakeys
Other
266 stars 44 forks source link

Build the whitelist with NSDistributedNotifications between collaborating apps instead #2

Open nevyn opened 13 years ago

shamrin commented 11 years ago

What is the rationale for this? Do you only want to stop maintaining the whitelist?

Could we invent some kind of this-process-uses-SPMediaKeyTap label? E.g. a key in application Info.plist. Then we can check process for the label after checking the whitelist. This will allow you to freeze the whitelist and stop maintaining it.

I know very little about Mac OS APIs, so it's quite possible that my idea is completely crazy :-)

nevyn commented 11 years ago

Yes, I want to stop maintaining a whitelist. It was always a bad idea, but I didn't have time to write something better. Info.plist key is a pretty good idea, I've been thinking about that one too. That's probably a better idea. I hope I will ever get around to doing it...