Dockyard > Objective-C Classes > DeleteDockController

DeleteDockController

Class Description


Controls the panel used to delete docks. Part of Dockyard's Controller layer in the MVC paradigm, as all decisions are relayed from the controls on the panel to the DockyardPreferences instance.

Methods


- confirm:

- selectDockToDelete:

- selectDockToSwitch:

Method Detail


confirm:

- (IBAction)confirm:(id)sender

Calls deleteDockWithName: on DockyardPreferences, as well as closing the delete window. The dock is chosen using an NSPopUpButton. If the dock being deleted is the current dock, this method will also call changeDock: to switch to another dock.

See also: DockyardPreferences.deleteDockWithName:

selectDockToDelete:

- (IBAction)selectDockToDelete:(NSPopUpButton *)sender

Selects the dock to delete. If it is the current dock, shows another pop up button asking which dock to switch to before the deletion. If it is not and the other button is showing, this method hides it. The show/hide process is actually animated, with the window sliding smoothly down or up when the button is added or removed.

selectDockToSwitch:

- (IBAction)selectDockToSwitch:(NSPopUpButton *)sender

Selects the dock to switch to after deleting the current dock. Makes sure that the dock being switched to and the dock being deleted are not the same.

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

Valid XHTML 1.0! Valid CSS!