32. Bindings and Controllers
Chapter 29, “Controllers,” describes the roles of Coordinating Controllers and Mediating Controllers within Model View Controller design pattern that permeates Cocoa. Coordinating Controllers initialize, load, and save the Model and View subsystems. Mediating Controllers manage the flow of data between view objects and model objects to minimize coupling between the subsystems. Cocoa supplies the NSApplication
, NSDocumentController
, NSDocument
, NSWindowController
, and NSViewController
classes among others to provide reusable implementations of most common coordinating tasks. Cocoa also includes NSObjectController
, NSArrayController
, NSTreeController
, and NSUserDefaultsController
, which provide reusable implementations ...
Get Cocoa Design Patterns 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.