Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Solution

An outlet is an instance variable that stores a reference (pointer) to another object such as a user interface object. Outlets can be set with the Interface Builder tool or programmatically. In Interface Builder, connection lines are drawn from objects that have outlets to the objects that are referenced. Outlets are set programmatically with the help of Accessor methods (Chapter 10, “Accessors”) or by using Cocoa’s Key Value Coding technology described in Chapter 19, “Associative Storage.”

Targets are special outlets. You draw connection lines in Interface Builder as shown in Figure 17.1 to set the object referenced by an outlet. It works the same way for all outlets, but Figure 17.1 shows connection of a target outlet.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint