MBPreferencesController Class Reference

MBPreferencesController.h

Overview

MBPreferencesController provides an easy, reusable implementation of a standard preferences window.

MBPreferencesController handles the creation and display of the preferences window as well as switching between different "modules" using the toolbar.

Tasks

Preference Modules

Accessing the Shared Instance

Properties

modules

The different modules to install into the preferences window.

@property NSArray *modules
Discussion

Each item in the array must conform to the MBPreferencesModule protocol. It is suggested (but not required) that these items be subclasses of NSViewController.

Changing this value will result in the toolbar being cleared and repopulated from the ground up. As such, the modules should usually be set once and left that way.

See Also
Declared In
MBPreferencesController.h

Class Methods

sharedController

The shared controller for the application's preferences window. All interaction with the window should be done through this controller.

+ (MBPreferencesController *)sharedController
Declared In
MBPreferencesController.h

Instance Methods

moduleForIdentifier:

The preference module that corresponds to the given identifier.

- (id<MBPreferencesModule>)moduleForIdentifier:(NSString *)identifier
Parameters
identifier

The identifier in question.

Return Value

The preference module that corresponds to identifier, or nil if no corresponding module exists.

See Also
Declared In
MBPreferencesController.h

Last updated: 2008-10-27