Combo Button
Combo Button
Ein Combo Button teilt sich in eine Haupt-Aktion und ein kleines Menü daneben. Das Menü listet nahe Varianten derselben Aktion.
Ein echtes Beispiel
Ein Klick auf Run startet den Standard-Build. Der Pfeil zeigt Run Without Debugging und Choose Target an.
Hauptteile
- 01Sichtbares Etikett
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Verwenden Sie es, wenn
Verwenden Sie es, wenn eine sichere, übliche Aktion eindeutig die Hauptwahl ist. Ein kurzes Menü kann nahe Varianten dieser Aktion anbieten.
Nutze es nicht, wenn
Vermeide es, wenn alle Optionen gleich wichtig sind oder die Haupt-Aktion zerstörerisch ist. Das Menü darf heimlich ändern, was die andere Hälfte tut.
In Code verwendeter Name
AppKit NSComboButton / SwiftUI Menu with primaryAction Vor dem Ausliefern
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: Ein Klick auf Run startet den Standard-Build. Der Pfeil zeigt Run Without Debugging und Choose Target an. macOS concept or control: Combo Button (Combo Button). Why it fits: Verwenden Sie es, wenn eine sichere, übliche Aktion eindeutig die Hauptwahl ist. Ein kurzes Menü kann nahe Varianten dieser Aktion anbieten. Do not use it when: Vermeide es, wenn alle Optionen gleich wichtig sind oder die Haupt-Aktion zerstörerisch ist. Das Menü darf heimlich ändern, was die andere Hälfte tut. 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): Es ist offiziell für diese Quelle. Andere Plattformen oder Teams können den Begriff auf andere Weise verwenden. 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.
Diese Anfrage prüfen
Review how Combo Button (Combo Button) is used now. Definition: Ein Combo Button teilt sich in eine Haupt-Aktion und ein kleines Menü daneben. Das Menü listet nahe Varianten derselben Aktion. 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.