O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

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

1 Let’s Get Started

In this chapter, you are going to write a simple Cocoa application. When the user clicks a button, a random string is generated and displayed in a text field. The user can then copy the string and use it as a password that cannot be easily guessed. Figure 1.1 shows the completed application.

Figure 1.1  Completed RandomPassword application

Completed RandomPassword application

This chapter provides an initial exposure to Cocoa programming. Do not worry if something does not make perfect sense this first time; you will see it again and learn more about it in later chapters. For now, the goal is to get started, and the first step is to create ...

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