Chapter 21. Creating Pull-Down Menus

The simplest user interface might consist of a window with a few buttons or check boxes on the screen. However, there's a limit to the number of options you can cram inside a window. Eventually, you may want to organize commands in categories and display those categories of commands in pull-down menus at the top of the screen.

Pull-down menus enable you to store and organize multiple commands, yet keep them tucked out of sight until the user actually needs them. In addition to menus, you can create submenus. You can also assign shortcut keystrokes to specific menu commands. By designing a pull-down menu for your program, you can simplify your user interface and provide a consistent Mac look and feel for your ...

Get Mac Programming for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.