Dock Badge
Dock Badge
Dock Badgeは、アプリのDockアイコンに付く小さな数字などのことです。アプリの画面を閉じていても、役立つ数を示してくれます。
実際の例
メールアプリは、Dock アイコンに3つの未読の優先メッセージを表示するよ。メッセージを読んだら、その数は消えるよ。
主な部分
- 01State signal
- 02Human-readable message
- 03Timing or progress
- 04Recovery path
以下の場合に使用します
アクションが必要な小さなカウントやステータスに使用します。すべてのアプリウィンドウが閉じられたり隠されたりしても意味がある状態であるべきです。
以下の場合は使用しないでください
虚栄の合計値、個人の値、急速に変化するシステム数値を表示しないでください。バッジは、アプリに戻るかどうかを判断するのに役立つものであるべきです。
コードで使用する名前
NSApplication.dockTile.badgeLabel 出荷前に
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:メールアプリは、Dock アイコンに3つの未読の優先メッセージを表示するよ。メッセージを読んだら、その数は消えるよ。 macOS concept or control:Dock Badge (Dock Badge)。 Why it fits:アクションが必要な小さなカウントやステータスに使用します。すべてのアプリウィンドウが閉じられたり隠されたりしても意味がある状態であるべきです。 Do not use it when:虚栄の合計値、個人の値、急速に変化するシステム数値を表示しないでください。バッジは、アプリに戻るかどうかを判断するのに役立つものであるべきです。 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):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 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.
このリクエストを確認する
Review how Dock Badge (Dock Badge) is used now. Definition: Dock Badgeは、アプリのDockアイコンに付く小さな数字などのことです。アプリの画面を閉じていても、役立つ数を示してくれます。 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.