© Wallace Wang 2017

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

22. Creating Pull-Down Menus

Wallace Wang

(1)San Diego, California, USA

Pull-down menus represent the standard way to interact with a macOS program. While your program may display buttons to represent commands, too many buttons can clutter the screen. To avoid trying to cram multiple buttons on the screen, you can group related commands in multiple pull-down menus. By default, Xcode creates every macOS project with the following pull-down menu titles:

  • File: Displays commands for opening, saving, creating, and printing

  • Edit: Displays commands for copying, cutting, pasting, undoing, and redoing commands

  • Format: Displays commands for modifying ...

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

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