Cocoa Programming for OS X: The Big Nerd Ranch Guide
by Aaron Hillegass, Adam Preble, Nate Chandler
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access