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

Drawing Images

Often, as part of a custom view’s drawing, you will want to draw an image on the screen. Cocoa makes this extremely simple.

To try it out, you are going to make a small Cocoa application which draws an image. When you are done, the app will have a view that draws a regular grid of images (Figure 17.11)

Figure 17.11  The finished ImageTiling project

The finished ImageTiling project

In Xcode, create a new Cocoa Application project called ImageTiling (Figure 17.12).

Figure 17.12  Configuring the new ImageTiling project

Configuring the new ImageTiling project

As you did with ...

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