Hierarchy of NSViewControllers
Cathy Shive and Jonathan Dann:
…we now have two new abstract super-classes for our controllers, XSWindowController and XSViewController. When we subclass them to build our UIs, we get the controller architecture that we illustrated at the beginning of the post and the following features built in to our view controller:
- Automatic memory management!
- Automatic inclusion in the responder chain!!!
- A designated method for removing observations or bindings!
- A relationship with the window controller and document!