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

Workshop

Quiz

1. If you change the superclass of a class, what precaution do you take in building the project?

2. When do you use the @public scope?

3. How can you tell if an object has been allocated?

Quiz Answers

1. Clean the project.

2. Very rarely.

3. Using the debugger, set a breakpoint and check to see if memory has been allocated for the object.

Activities

Some of the sample code on developer.apple.com dates back a few years. Download some of the samples with modification dates from 2010 and earlier. Many of them use instance variables rather than properties. Make certain that you can understand their interfaces. Even if you switch over to properties for new projects, you will probably be modifying older code and need to understand the concepts in this hour.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


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