Dock Badge
Dock Badge
Un Dock Badge è un piccolo numero sull'icona dell'app nel Dock. Spesso mostra un conteggio utile anche quando le finestre dell'app sono chiuse.
Un esempio vero
Un'app di posta mostra tre messaggi prioritari non letti sulla sua icona nel Dock. Azzera il conteggio dopo che i messaggi sono letti.
Parti principali
- 01State signal
- 02Human-readable message
- 03Timing or progress
- 04Recovery path
Usalo quando
Usalo per un piccolo conteggio o stato che richiede azione. Dovrebbe comunque essere rilevante quando tutte le finestre dell'app sono chiuse o nascoste.
Non usarlo quando
Non mostrare un totale di vanità, un valore privato o un numero di sistema in rapido cambiamento. Un badge dovrebbe aiutare qualcuno a decidere se tornare all'app.
Nome usato nel codice
NSApplication.dockTile.badgeLabel Prima di spedire
Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion.
Outcome: Complete the task with Dock Badge (Dock Badge). User context: Un'app di posta mostra tre messaggi prioritari non letti sulla sua icona nel Dock. Azzera il conteggio dopo che i messaggi sono letti. macOS concept or control: Dock Badge (Dock Badge). Why it fits: Usalo per un piccolo conteggio o stato che richiede azione. Dovrebbe comunque essere rilevante quando tutte le finestre dell'app sono chiuse o nascoste. Do not use it when: Non mostrare un totale di vanità, un valore privato o un numero di sistema in rapido cambiamento. Un badge dovrebbe aiutare qualcuno a decidere se tornare all'app. Platform requirements: List the supported macOS versions. Say whether AppKit or SwiftUI owns each part and how they connect. Define window, menu, focus, keyboard, saved state, restore, and multi-window behavior. Platform accessibility and resilience: Use the right accessibility APIs. Check VoiceOver and Full Keyboard Access. Support localization, contrast, and reduced motion when needed. Keep user state after a relaunch. Acceptance criteria: Check the behavior on supported macOS versions with a keyboard and VoiceOver. Window resizing, focus, state restore, and AppKit or SwiftUI integration work in the normal macOS way. Evidence and limits (evidence boundary): È ufficiale per quella fonte. Altre piattaforme o team potrebbero usare il termine in modo diverso. Unknowns to confirm: Supported macOS versions, AppKit or SwiftUI structure, and window model. Also confirm sandbox and entitlement limits, save rules, and the accessibility goal.
Controlla questa richiesta
Review how Dock Badge (Dock Badge) is used now. Definition: Un Dock Badge è un piccolo numero sull'icona dell'app nel Dock. Spesso mostra un conteggio utile anche quando le finestre dell'app sono chiuse. Release checks: Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.