Sheet vs. Alert (macOS)
Both are Mac modals, scoped differently. A sheet slides out of ONE window's title bar and blocks only that window — the rest of the app keeps working; it's for tasks that belong to that document. An alert is the small centered window for a warning or decision, badged with the app's icon.
How to tell them apart
- Attached to a window and moves with it → sheet.
- Small, centered: icon, bold one-liner, Cancel/OK → alert.
- Naming, saving, exporting → sheet. "Are you sure?" → alert.
The full entries — names, anatomy, paste-ready prompts
Documents
Delete “Q3 Report”?
Blocks only this window.
Sheetmacos
NSWindow.beginSheet(_:completionHandler:)
A modal panel attached to one macOS window rather than the whole app
Empty the Trash?
You can’t undo this action.
Alertmacos
NSAlert
The small centered window with a badged icon, a bold line, and Cancel/OK buttons
Still a different pair on your mind? See every commonly confused pair