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] |
Definition at line 40 of file CPWindowController.j.
- (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.
aWindow | the window to control |
Definition at line 53 of file CPWindowController.j.
- (id) initWithWindowCibName: | (CPString) | aWindowCibName | [implementation] |
Initializes the controller with a Capppuccino Interface Builder name.
aWindowCibName | the cib name of the window to control |
Definition at line 72 of file CPWindowController.j.
- (id) initWithWindowCibName: | (CPString) | aWindowCibName | ||
owner: | (id) | anOwner | ||
[implementation] |
Initializes the controller with a cafe name.
aWindowCibName | the cib name of the window to control | |
anOwner | the owner of the cib file |
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.
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
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.
aWindow | the new window to control |
Definition at line 148 of file CPWindowController.j.
- (CFAction) showWindow: | (id) | aSender | [implementation] |
Shows the window.
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.
Returns the window title based on the document's name.
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.