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!
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; @property (strong) IBOutlet NSTableView *m_keyTableView;
Click on the filename
BTSAppDelegate.m
in the project navigator and add the following lines of code to synthesize the properties:// // Define the GUI object references // @synthesize...