© Wallace Wang 2017

Wallace Wang, macOS Programming for Absolute Beginners, 10.1007/978-1-4842-2662-9_21

21. Using Alerts and Panels

Wallace Wang

(1)San Diego, California, USA

In every program, you can design the unique features of your program while letting the Cocoa framework worry about making your program look and behave like a standard macOS program. To create the common features of nearly every macOS program, you can use alerts and panels.

An alert typically pops up on the screen to inform the user, such as asking the user to verify the deletion of a file or to alert the user of a problem. A panel displays common user interface items such as a print panel that macOS programs typically display to give you options for printing, or an open panel ...

Get macOS Programming for Absolute Beginners: Developing Apps Using Swift and Xcode now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.