Dockyard > Objective-C Classes > SettingsManager

SettingsManager

Class Description


Manages various settings for Dockyard Manager, including whether or not the menu extra uses a black and white icon and bringing the main window up when the user clicks the application's dock icon (a la iChat).

Methods


- applicationShouldHandleReopen:hasVisibleWindows:

- setOnState:

- setShouldUseBWIcon:

- shouldUseBWIcon

- shouldUseBWIconChanged:

- toggleWindowShown:

Method Detail


applicationShouldHandleReopen:hasVisibleWindows:

- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag

Opens the main window when the application's icon is clicked.

setOnState:

- (IBAction)setOnState:(id)sender

Automatically sets the state of sender to NSOnState. This can be used for menu items that are bound to defaults keys.

setShouldUseBWIcon:

- (void)setShouldUseBWIcon:(BOOL)newShouldUse

Sets whether the menu extra should use a color icon or a black-and-white one. This is stored in DockyardPreferences as @"MenuExtra:shouldUseBWIcon".

shouldUseBWIcon

- (BOOL)shouldUseBWIcon

Returns YES if the menu extra version of Dockyard is using a black-and-white icon, NO if it is using a color icon.

shouldUseBWIconChanged:

- (void)shouldUseBWIconChanged:(NSNotification *)note

Response to a DockyardDefaultsChangedNotification when the key is @"MenuExtra:shouldUseBWIcon". This method should never be directly invoked.

toggleWindowShown:

- (IBAction)toggleWindowShown:(id)sender

If the main window is displayed, hides it. Otherwise, calls it to the front.

This page was generated with DocYouMeant, a program created by Belkadan Software

Valid XHTML 1.0! Valid CSS!