assignMainView()
Locates and assigns the preference pane’s main view from the nib file loaded by Loadmainview().
Declaration
func assignMainView()Discussion
The default implementation sets the receiver’s main view to the content view of the window referenced by the _window outlet. Before returning, assignMainView() releases the window and sets the _window outlet to nil. Returns the main view if successful, nil otherwise.
Override this method if your main view is located in the nib file loaded by loadMainView(), but is not the content view of a window in the file. Call NSPreferencePane to set the main view of the preference pane before returning. Also call NSPreferencePane, NSPreferencePane, and NSPreferencePane to set the initial, first, and last keyboard focus views, respectively.