Autoresizing
Wait. This isn’t right (Figure 19.3). The window resizes, but the table doesn’t. It just sits in the upper-left corner of the window, at the same size it had when you created it.
Cocoa has two ways to manage sizing problems like this: You’ve lived through autolayout, in exhaustive detail, in Chapter 12, “Autolayout in a New View.” The other is autoresizing, which has been available on the Mac and iOS from the beginning.
Note
If you quit the Cocoa Simulator and then reopen it, you’ll find OS X’s state restoration gives you the ...
Get Xcode 5 Start to Finish: iOS and OS X Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.