La Touch Bar supporta applicazioni di background / system wide?

5

Ad esempio, desidero utilizzare la Touch Bar per il tracciamento del tempo o per l'elenco delle cose da fare. Sarebbe super utile avere qualcosa che è sempre lì, indipendentemente dall'applicazione che sto visualizzando.

    
posta Tony 29.10.2016 - 06:27
fonte

2 risposte

4

La Touch Bar non è pensata per mostrare notifiche di background e / o system wide.

Apple ha pubblicato un documento chiamato macOS Human Interface Guidelines che ha lo scopo di comunicare agli sviluppatori come implementare gli elementi dell'interfaccia utente; c'è una sezione specifica su come dovrebbe funzionare la barra di contatto.

Sotto Design per la sezione Touch Bar , fornisce indicazioni su come utilizzare la Touch Bar nel contesto di un'app.

Design a contextual experience. Make the Touch Bar relevant to the current context on the main screen. Identify the different contexts within your app, and consider how you can expose varying levels of functionality based on how your app is used.

E in modo più specifico alla tua domanda, perché le "applicazioni in background / system wide" fornirebbero le notifiche e l'interfaccia utente e lo schermo (tramite Notifiche molto probabilmente), non tramite la tastiera:

Use the Touch Bar as an extension of the keyboard and trackpad, not as a display. Although technically it’s a screen, the Touch Bar functions as an input device, not a secondary display. The user may glance at the Touch Bar to locate or use a control, but their primary focus is the main screen. The Touch Bar shouldn’t display alerts, messages, scrolling content, static content, or anything else that commands the user’s attention or distracts from their work on the main screen.

(sottolineatura mia)

    
risposta data 29.10.2016 - 13:48
fonte
1

Il riferimento API per sviluppatori per NSTouchBar di Apple indica esplicitamente in che modo viene determinato il contenuto della Touch Bar (sottolineatura mia) :

On supported MacBook Pro models, the Touch Bar, above the keyboard, shows instances of the NSTouchBar class from the front-most app.

macOS stesso regola ciò che viene mostrato sulla Touch Bar a che ora e come indicato sopra, questo cambia quando fa l'app più in-front.

    
risposta data 29.10.2016 - 07:34
fonte

Leggi altre domande sui tag