Chapter    19

Creating Pull-Down Menus

Pull-down menus represent the standard way to interact with an OS X 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 OS X 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 text or graphics such as changing fonts or aligning text.
  • View – Displays commands for changing the way data appears in the window ...

Get Swift OS X 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.