macOS Alert
macOS Alert
Ein macOS Alert ist ein System-Dialog für eine wichtige Wahl, einen Fehler oder einen Zustand. Eine Person muss ihn bemerken und antworten.
Ein weiteres Beispiel
Das Schließen eines ungespeicherten Dokuments fragt, ob du speichern, abbrechen oder verwerfen willst. Das sicherste Standard-Verhalten ist klar.
Hauptteile
- 01Auslösen
- 02Anchored or modal surface
- 03Focus boundary
- 04Dismiss path
Verwenden Sie es, wenn
Verwenden Sie es nur, wenn eine wichtige Bedingung eine Antwort oder Entscheidung erfordert, bevor die aktuelle Aufgabe sicher fortgesetzt werden kann.
Nutze es nicht, wenn
Vermeide Routine-Erfolgsmeldungen, behebbare Inline-Prüfung und Bestätigungen für umkehrbare Aktionen. Wiederholte Warnungen bringen Leute dazu, sie ungelesen zu schließen.
In Code verwendeter Name
AppKit NSAlert / SwiftUI alert 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 macOS Alert (macOS Alert). User context: Das Schließen eines ungespeicherten Dokuments fragt, ob du speichern, abbrechen oder verwerfen willst. Das sicherste Standard-Verhalten ist klar. macOS concept or control: macOS Alert (macOS Alert). Why it fits: Verwenden Sie es nur, wenn eine wichtige Bedingung eine Antwort oder Entscheidung erfordert, bevor die aktuelle Aufgabe sicher fortgesetzt werden kann. Do not use it when: Vermeide Routine-Erfolgsmeldungen, behebbare Inline-Prüfung und Bestätigungen für umkehrbare Aktionen. Wiederholte Warnungen bringen Leute dazu, sie ungelesen zu schließen. 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 macOS Alert (macOS Alert) is used now. Definition: Ein macOS Alert ist ein System-Dialog für eine wichtige Wahl, einen Fehler oder einen Zustand. Eine Person muss ihn bemerken und antworten. 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.