O'Reilly logo

Cocoa Design Patterns by Donald A. Yacktman, Erik M. Buck

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

28. Managers

Managers are classes that manage instances of other classes. Examples of Cocoa manager classes include NSFileManager, NSFontManager, NSInputManager, and NSLayoutManager. Managers simplify the creation and management of reusable resources such as fonts and encapsulate implementation details. For example, the NSFileManager class provides methods for managing files from file systems as diverse as DOS FAT, Apple HFS+, Network File System, UFS, and ISO 9660 without requiring any system-specific code in applications. Some managers also act as controllers within the Model View Controller pattern.

Motivation

Offer a uniform interface for managing the instantiation of and access to a group of related objects. Many managers use and extend ...

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