Dockyard > Objective-C Classes > NewDockController
Class Description
Controls the panel used to create new 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
This function is mostly a call to createDockWithName:fromFile:dashboardFile:, but includes a switch statement to decide where to find the dock's plist file. The choices are Apple's default dock, an empty dock, and the current dock. The same choices are given for the dock's Dashboard contents on a 10.4 or later system. Also, if the name chosen is invalid, the window will not close, but will instead erase the name and wait for a different one.
See also: DockyardPreferences.createDockWithName:fromFile:dashboardFile:
This page was generated with DocYouMeant, a program created by Belkadan Software