CPWindowController Class Reference

List of all members.

Public Member Functions

(id) - initWithWindow: [implementation]
(id) - initWithWindowCibName: [implementation]
(id) - initWithWindowCibName:owner: [implementation]
(void) - loadWindow [implementation]
(CFAction) - showWindow: [implementation]
(BOOL) - isWindowLoaded [implementation]
(CPWindow- window [implementation]
(void) - setWindow: [implementation]
(void) - windowDidLoad [implementation]
(void) - windowWillLoad [implementation]
(void) - setDocument: [implementation]
(CPDocument- document [implementation]
(void) - setDocumentEdited: [implementation]
(void) - synchronizeWindowTitleWithDocumentName [implementation]
(CPString- windowTitleForDocumentDisplayName: [implementation]


Detailed Description

An instance of a CPWindowController manages a CPWindow. It has methods that get called when the window is loading, and after the window has loaded. In the Model-View-Controller method of program design, the CPWindowController would be considered the 'Controller' and the CPWindow the 'Model.'

Definition at line 40 of file CPWindowController.j.


Member Function Documentation

- (CPDocument) document   [implementation]

Returns the document in the controlled window.

Definition at line 246 of file CPWindowController.j.

- (id) initWithWindow: (CPWindow aWindow   [implementation]

Initializes the controller with a window.

Parameters:
aWindow the window to control
Returns:
the initialzed window controller

Definition at line 53 of file CPWindowController.j.

- (id) initWithWindowCibName: (CPString aWindowCibName   [implementation]

Initializes the controller with a Capppuccino Interface Builder name.

Parameters:
aWindowCibName the cib name of the window to control
Returns:
the initialized window controller

Definition at line 72 of file CPWindowController.j.

- (id) initWithWindowCibName: (CPString aWindowCibName
owner: (id)  anOwner 
[implementation]

Initializes the controller with a cafe name.

Parameters:
aWindowCibName the cib name of the window to control
anOwner the owner of the cib file
Returns:
the initialized window controller

Definition at line 83 of file CPWindowController.j.

- (BOOL) isWindowLoaded   [implementation]

Returns YES if the window has been loaded. Specifically, if loadWindow has been called.

Definition at line 128 of file CPWindowController.j.

- (void) loadWindow   [implementation]

Loads the window

Definition at line 101 of file CPWindowController.j.

- (void) setDocument: (CPDocument aDocument   [implementation]

Sets the document that is inside the controlled window.

Parameters:
aDocument the document in the controlled window

Definition at line 178 of file CPWindowController.j.

- (void) setDocumentEdited: (BOOL)  isEdited   [implementation]

Sets whether the document has unsaved changes. The window can use this as a hint to

Parameters:
isEdited YES means the document has unsaved changes.

Definition at line 255 of file CPWindowController.j.

- (void) setWindow: (CPWindow aWindow   [implementation]

Sets the window to be controlled.

Parameters:
aWindow the new window to control

Definition at line 148 of file CPWindowController.j.

- (CFAction) showWindow: (id)  aSender   [implementation]

Shows the window.

Parameters:
aSender the object requesting the show

Definition at line 114 of file CPWindowController.j.

- (void) synchronizeWindowTitleWithDocumentName   [implementation]

Sets the title of the window as the name of the document.

Definition at line 265 of file CPWindowController.j.

- (CPWindow) window   [implementation]

Returns the window this object controls.

Definition at line 136 of file CPWindowController.j.

- (void) windowDidLoad   [implementation]

The method notifies the controller that it's window has loaded.

Definition at line 159 of file CPWindowController.j.

- (CPString) windowTitleForDocumentDisplayName: (CPString aDisplayName   [implementation]

Returns the window title based on the document's name.

Parameters:
aDisplayName the document's filename

Definition at line 278 of file CPWindowController.j.

- (void) windowWillLoad   [implementation]

The method notifies the controller that it's window is about to load.

Definition at line 169 of file CPWindowController.j.


The documentation for this class was generated from the following file:

Generated on Thu Dec 11 01:55:51 2008 for Cappuccino by  doxygen 1.5.7.1