Combo Button
Combo Button
Um Combo Button é dividido em uma ação principal e um pequeno menu ao lado. O menu lista versões semelhantes da mesma ação.
Um exemplo real
Clicar em Run inicia o build padrão. A seta revela Run Without Debugging e Choose Target.
Partes principais
- 01Rótulo visível
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Use-o quando
Use-o quando uma ação segura e comum é claramente a escolha principal. Um menu curto pode oferecer versões próximas dessa ação.
Não o use quando
Evite quando todas as escolhas são igualmente importantes ou a ação principal é destrutiva. O menu não pode mudar secretamente o que a outra metade faz.
Nome usado no código
AppKit NSComboButton / SwiftUI Menu with primaryAction Antes de lançar
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: Clicar em Run inicia o build padrão. A seta revela Run Without Debugging e Choose Target. macOS concept or control: Combo Button (Combo Button). Why it fits: Use-o quando uma ação segura e comum é claramente a escolha principal. Um menu curto pode oferecer versões próximas dessa ação. Do not use it when: Evite quando todas as escolhas são igualmente importantes ou a ação principal é destrutiva. O menu não pode mudar secretamente o que a outra metade faz. 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): É oficial para essa fonte. Outras plataformas ou equipes podem usar o termo de outra maneira. 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.
Conferir este pedido
Review how Combo Button (Combo Button) is used now. Definition: Um Combo Button é dividido em uma ação principal e um pequeno menu ao lado. O menu lista versões semelhantes da mesma ação. 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.