CPWindowController Class Reference
[AppKit]

List of all members.

Public Member Functions

(void) - addDocument: [implementation]
(void) - close [implementation]
(CPDocument- document [implementation]
(CPArray- documents [implementation]
(id) - init [implementation]
(id) - initWithWindow: [implementation]
(id) - initWithWindowCibName: [implementation]
(id) - initWithWindowCibName:owner: [implementation]
(id) - initWithWindowCibPath:owner: [implementation]
(BOOL) - isWindowLoaded [implementation]
(void) - loadWindow [implementation]
(id) - owner [implementation]
(void) - removeDocument: [implementation]
(void) - removeDocumentAndCloseIfNecessary: [implementation]
(void) - setDocument: [implementation]
(void) - setDocumentEdited: [implementation]
(void) - setShouldCloseDocument: [implementation]
(void) - setSupportsMultipleDocuments: [implementation]
(void) - setViewController: [implementation]
(void) - setViewControllerContainerView: [implementation]
(void) - setWindow: [implementation]
(BOOL) - shouldCloseDocument [implementation]
(action) - showWindow: [implementation]
(BOOL) - supportsMultipleDocuments [implementation]
(void) - synchronizeWindowTitleWithDocumentName [implementation]
(CPViewController- viewController [implementation]
(void) - viewControllerContainerView [implementation]
(CPWindow- window [implementation]
(CPString- windowCibName [implementation]
(CPString- windowCibPath [implementation]
(void) - windowDidLoad [implementation]
(CPString- windowTitleForDocumentDisplayName: [implementation]
(void) - windowWillLoad [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 42 of file CPWindowController.j.


Member Function Documentation

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

Definition at line 293 of file CPWindowController.j.

- (void) close   [implementation]

Definition at line 394 of file CPWindowController.j.

- (CPDocument) document   [implementation]

Returns the document in the controlled window.

Definition at line 380 of file CPWindowController.j.

- (CPArray) documents   [implementation]

Definition at line 320 of file CPWindowController.j.

- (id) init   [implementation]

Definition at line 59 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 69 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 91 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 102 of file CPWindowController.j.

- (id) initWithWindowCibPath: (CPString aWindowCibPath
owner: (id)  anOwner 
[implementation]

Definition at line 115 of file CPWindowController.j.

- (BOOL) isWindowLoaded   [implementation]

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

Definition at line 157 of file CPWindowController.j.

- (void) loadWindow   [implementation]

Loads the window

Definition at line 131 of file CPWindowController.j.

- (id) owner   [implementation]

Definition at line 409 of file CPWindowController.j.

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

Definition at line 299 of file CPWindowController.j.

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

Definition at line 312 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 226 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 389 of file CPWindowController.j.

- (void) setShouldCloseDocument: (BOOL)  shouldCloseDocument   [implementation]

Definition at line 399 of file CPWindowController.j.

- (void) setSupportsMultipleDocuments: (BOOL)  shouldSupportMultipleDocuments   [implementation]

Definition at line 283 of file CPWindowController.j.

- (void) setViewController: (CPViewController aViewController   [implementation]

Definition at line 335 of file CPWindowController.j.

- (void) setViewControllerContainerView: (CPView aView   [implementation]

Definition at line 325 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 198 of file CPWindowController.j.

- (BOOL) shouldCloseDocument   [implementation]

Definition at line 404 of file CPWindowController.j.

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

Shows the window.

Parameters:
aSender the object requesting the show

Definition at line 143 of file CPWindowController.j.

- (BOOL) supportsMultipleDocuments   [implementation]

Definition at line 288 of file CPWindowController.j.

- (void) synchronizeWindowTitleWithDocumentName   [implementation]

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

Definition at line 435 of file CPWindowController.j.

- (CPViewController) viewController   [implementation]

Definition at line 354 of file CPWindowController.j.

- (void) viewControllerContainerView   [implementation]

Definition at line 330 of file CPWindowController.j.

- (CPWindow) window   [implementation]

Returns the window this object controls.

Definition at line 165 of file CPWindowController.j.

- (CPString) windowCibName   [implementation]

Definition at line 414 of file CPWindowController.j.

- (CPString) windowCibPath   [implementation]

Definition at line 422 of file CPWindowController.j.

- (void) windowDidLoad   [implementation]

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

Definition at line 211 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 448 of file CPWindowController.j.

- (void) windowWillLoad   [implementation]

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

Definition at line 218 of file CPWindowController.j.


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

Generated on Fri Apr 9 11:04:23 2010 for Cappuccino API by  doxygen 1.6.1