News for hackers. Stuff that matters.
Re:Apple says no fun allowed on the Touch Bar by Razengan on Monday October 31, 2016 @03:59PM (#12840349)
If I understand correctly it's like the Menu Bar, so only the application that's currently in focus will get to display stuff on it; they won't be able to hijack it from the background.

Frankly, if an app insists on showing me ads while I'm using it, I'd rather that they be on the Touch Bar instead of the main screen.

Re:Apple says no fun allowed on the Touch Bar by stcredzero on Monday October 31, 2016 @04:15PM (#12840520)
How long before some application hijacks focus by only pretending to give it up, just so it can display ads? (Also, maybe record keystrokes.)
Re:Apple says no fun allowed on the Touch Bar by eridius on Monday October 31, 2016 @04:19PM (#12840570)
Applications cannot do that. You cannot prevent the user from switching to another app, and even if you could, you can't show that other app's menubar or make its windows appear to have focus when they don't. The closest you can come to preventing app switching is using old-style fullscreen capture plus disabling global hotkeys (you know, like how a lot of old games work), but when you're doing that, the user can't even see other apps, much less think they've got focus.
Re:Apple says no fun allowed on the Touch Bar by Razengan on Monday October 31, 2016 @04:21PM (#12840592)
As far as I know, to do things like record keystrokes or interfere with the UI of other processes, an app on macOS has to be manually permitted through System Preferences -> Security & Privacy -> Privacy -> Accessibility.

Steam's in-game overlay feature and even some functions of the built-in Automator utility have to be allowed from there.