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

Summary

In this hour, we took a tour through the stock controls available to Cocoa developers that come with Xcode out of the box. You saw a little bit about how these controls look, where and when you might use them, and how they can help you create powerful and compelling user interfaces.

Next, you learned about the default “springs and struts” layout system available on all versions of Mac OS X, as well as the new automatic layout system that is available only on Mac OS X Lion.

Finally, you created your own dynamic layout. This layout responded automatically to the resizing of the window and positioned buttons where they should be, resized a box intuitively, and even prevented certain aspects of the UI from overlapping each other when the window shrinks. All this was possible without writing a single line of code.


  

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