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 NewDefaults interface

We shall now create the interface by implementing the program code in the file named NewDefaults.h in our Xcode project:

  1. Open the NewDefaults project in Xcode.
  2. Click on the item named NewDefaults.h and add a new interface definition and the button action interface definition for the preference pane as shown in the following program code:
    #import <PreferencePanes/PreferencePanes.h> @interface NewDefaults : NSPreferencePane { /* Create the user interface elements */ // Buttons - A Check Box is a button IBOutlet NSButton* enableHiddenFilesCheckbox; IBOutlet NSButton* enableLaunchpadFadeCheckbox; IBOutlet NSButton* enableHomeLibraryCheckbox; } - (void)mainViewDidLoad; /* Create the Preference Pane ...

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