Test Your Finished Product
After saving your changes in Interface Builder, return to Xcode and build your completed application. Figure 5 shows the final result. Here, all the changes come together to tick each of the to-do item checkboxes in the original survey list. Test the program out. See whether it works as expected or whether you need or want to make further modifications.
Figure 5: The updated application
Apple sample code rocks. It is an under-tapped treasure available to anyone who signs up for the free online Apple Developer program. And MovieVideoChart is typical for the space. It's small. It's focused on demonstrating one ability. And it's fully hackable. If this article has shown anything, it is that it takes a surprisingly minimal amount of effort to capture the essence of a sample code project and transform it into something new. So here is the moral of the story: if a sample application almost does what you want it to, but not quite, take matters into your own hands. Hack the code to get the result you need. Do not fear the code.
Erica Sadun has written, co-written, and contributed to almost two dozen books about technology, particularly in the areas of programming, digital video, and digital photography.
Return to MacDevCenter.com.