O'Reilly logo

Swift OS X Programming for Absolute Beginners by Wallace Wang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required