Dockyard > Objective-C Classes > 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
Method Detail
- (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:
- (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.
- (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