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
In Xcode, create a new Cocoa Application project called ImageTiling (Figure 17.12).
Figure 17.12 Configuring the new ImageTiling project
As you did with ...