O'Reilly logo

Mac Application Development by Example Beginner's Guide by Robert Wiebe

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

Time for action – connecting the App Delegate to the GUI

Since we have already created the .xib file we just need to add the reference to the GUI objects in to our App Delegate and then connect them to our GUI. Let's get started!

  1. In Xcode, click on the file name BTSAppDelegate.h in the project navigator and add the following properties:
    // // Define the GUI object references // @property (strong) IBOutlet NSToolbar *m_toolbar; @property (strong) IBOutlet NSToolbarItem *m_addCategoryToolbarItem; @property (strong) IBOutlet NSToolbarItem *m_deleteCategoryToolbarItem; @property (strong) IBOutlet NSToolbarItem *m_addKeyToolbarItem; @property (strong) IBOutlet NSToolbarItem *m_deleteKeyToolbarItem; @property (strong) IBOutlet NSTableView *m_categoryTableView; ...

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