News for hackers. Stuff that matters.
Re:Show HN: Radio - My first Mac app by dglancy on Wednesday June 19, 2013 @03:22AM (#5904157)
It does not at the moment. And not from the want of trying! Unfortunately the App Store sandbox does not yet allow you to detect the media keys being pressed. The old way of doing it uses a very low-level function that is not available for security reasons (its essentially a key logger) within the sandbox..

Its common problem across all App Store apps, for now. Drives me crazy as well!

Re:Show HN: Radio - My first Mac app by signed0 on Wednesday June 19, 2013 @03:36AM (#5904197)
That's a shame. Perhaps someone needs to build a small library that exists outside of the App Store that notifies App Store apps when those keys are pressed. :P

This reason alone is what keeps me using VLC for radio playlists.

Re:Show HN: Radio - My first Mac app by kapowaz on Wednesday June 19, 2013 @04:41AM (#5904420)
This seems like a great idea. Build some sort of universal bridge for media keys that any compatible app can hook into? Or would the OS X sandbox prevent that, too?
Re:Show HN: Radio - My first Mac app by dglancy on Wednesday June 19, 2013 @06:59AM (#5904806)
It is a great idea and should be possible so long as Apple is willing to approve an sandboxed app that accepts incoming connections (listens) on a port against the local interface.
Re:Show HN: Radio - My first Mac app by quesera on Wednesday June 19, 2013 @08:34AM (#5905109)
The bridge could be the listener, and the sandboxed apps could open a connection to it. This is probably preferable design anyway.

The apps should request subscription to a set of keypress events, the bridge should get approval from the user (maybe only if the app requests keys other than F keys and media keys?). The bridge should be discoverable by local bonjour rather than running on a known port.