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 ...

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.