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 – completing the NewDefaults.h interface definition

Now that we have created a basic "stub" interface that Xcode will build successfully, we need to go back and fill in the final details to complete our interface definition:

  1. Open the NewDefaults project in Xcode.

    Note

    Often when we are developing program code it needs to contain literal values – for example, a number or strings. Rather than using literal values in the body of our code, we will define symbols in our .h file and then use those symbols in the body of our program code.

  2. Click on the NewDefaults.h file and add the following code to define the literal values that we are going to be using in the body of our code. Now is a good time to read the comments in the program code ...

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