O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Considerations for OS X 10.9 and Earlier

Prior to OS X 10.10, view controllers on OS X were relatively simple and, frankly, limited:

  • View controllers were not part of the responder chain.

  • View life cycle methods such as viewDidLoad(), viewWillAppear(), viewWillDisappear(), and so forth were not available.

  • Cocoa did not provide any container view controllers.

  • NSWindow’s contentViewController was not available.

Despite these limitations, if you are targeting OS X 10.9 and earlier and your application would benefit from view controllers, we believe it is worth the extra effort to work around these limitations and use view controllers.

You can include a view controller in the responder chain manually by patching it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required