Combo Button
Combo Button
コンボボタンは、メインのアクションとその横にある小さなメニューに分かれています。メニューには、同じアクションのバリエーションがいくつか並んでいます。
実際の例
実行をクリックするとデフォルトビルドが開始される。矢印をクリックするとデバッグなしで実行やターゲット選択を表示。
主な部分
- 01可視ラベル
- 02Interaction target
- 03Current state
- 04Keyboard behavior
以下の場合に使用します
安全で一般的なアクションが明確に主要な選択である場合に使用します。短いメニューでそのアクションの類似バージョンを提供できます。
以下の場合は使用しないでください
すべての選択肢が同じくらい重要であったり、主な操作が破壊的である場合は避けてください。メニューは、主要な操作の半分を秘密裏に変更してはいけません。
コードで使用する名前
AppKit NSComboButton / SwiftUI Menu with primaryAction 出荷前に
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 Combo Button (Combo Button)。 User context:実行をクリックするとデフォルトビルドが開始される。矢印をクリックするとデバッグなしで実行やターゲット選択を表示。 macOS concept or control:Combo Button (Combo Button)。 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 Combo Button (Combo Button) is used now. Definition: コンボボタンは、メインのアクションとその横にある小さなメニューに分かれています。メニューには、同じアクションのバリエーションがいくつか並んでいます。 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.