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 – creating the SimpleCalc interface

  1. Open the SimpleCalc project in Xcode.
  2. Click on the item named BTSAppDelegate.h and add the highlighted new interface @property definitions and the button action interface definition for the SimpleCalc App. Notice they are placed in the template code after the window property and before the @end statement as shown in the following code snippet:
    @interface BTSAppDelegate : NSObject <NSApplicationDelegate>
    
    @property (assign) IBOutlet NSWindow *window;
    
    /*
        Create the user interface elements
     */
    
    // Buttons
    @property (assign) IBOutlet NSButton *mAdd;
    @property (assign) IBOutlet NSButton *mSubtract;
    @property (assign) IBOutlet NSButton *mMutliply;
    @property (assign) IBOutlet NSButton *mDivide;
    
    // Text ...

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