![]() |
API
0.9.6
|
#import <CPWindowController.h>
Additional Inherited Members | |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
![]() | |
Class | isa |
An instance of a CPWindowController manages a CPWindow. Windows are typically loaded via a cib, but they can also manage windows created in code. A CPWindowController can manage a window by itself or work with AppKits's document-based architecture.
In a Document based app, a CPWindowController instance is created and managed by a CPDocument subclass.
If the CPWindowController is managing a CPWindow created in a cib the owner
of the CPWindow is this controller.
loadWindow
method.loadWindow
is called the first time the window object is needed. Definition at line 2 of file CPWindowController.h.
|
implementation |
Definition at line 296 of file CPWindowController.j.
|
implementation |
Definition at line 458 of file CPWindowController.j.
|
implementation |
Returns the CPDocument in the controlled window.
Definition at line 444 of file CPWindowController.j.
|
implementation |
Definition at line 323 of file CPWindowController.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Definition at line 57 of file CPWindowController.j.
|
implementation |
Initializes the controller with a window.
aWindow | the window to control |
Definition at line 67 of file CPWindowController.j.
|
implementation |
Initializes the controller with a Cappuccino Interface Builder name.
aWindowCibName | the cib name of the window to control |
Definition at line 89 of file CPWindowController.j.
|
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 100 of file CPWindowController.j.
|
implementation |
Definition at line 113 of file CPWindowController.j.
|
implementation |
Returns YES
if the window has been loaded. Specifically, if loadWindow has been called.
Definition at line 156 of file CPWindowController.j.
|
implementation |
Loads the window. This method should never be called directly. Instead call window
which will in turn call windowWillLoad and windowDidLoad. This method should be overwritten if you are creating the view programatically.
Definition at line 130 of file CPWindowController.j.
|
implementation |
Definition at line 473 of file CPWindowController.j.
|
implementation |
Definition at line 302 of file CPWindowController.j.
|
implementation |
Definition at line 315 of file CPWindowController.j.
|
implementation |
Sets the document that is inside the controlled window.
aDocument | the document in the controlled window |
Definition at line 225 of file CPWindowController.j.
|
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 453 of file CPWindowController.j.
|
implementation |
Definition at line 463 of file CPWindowController.j.
|
implementation |
Definition at line 286 of file CPWindowController.j.
|
implementation |
Definition at line 373 of file CPWindowController.j.
|
implementation |
Definition at line 328 of file CPWindowController.j.
|
implementation |
Sets the window to be controlled.
aWindow | the new window to control |
Definition at line 197 of file CPWindowController.j.
|
implementation |
Definition at line 468 of file CPWindowController.j.
|
implementation |
Shows the window.
aSender | the object requesting the show |
Definition at line 142 of file CPWindowController.j.
|
implementation |
Definition at line 291 of file CPWindowController.j.
|
implementation |
Sets the title of the window as the name of the document.
Definition at line 499 of file CPWindowController.j.
|
implementation |
Definition at line 418 of file CPWindowController.j.
|
implementation |
Definition at line 368 of file CPWindowController.j.
|
implementation |
Returns the CPWindow the reciever controls. This will cause loadWindow
to be called if no window object exists yet.
Definition at line 165 of file CPWindowController.j.
|
implementation |
Definition at line 478 of file CPWindowController.j.
|
implementation |
Definition at line 486 of file CPWindowController.j.
|
implementation |
The method notifies the controller that it's window has loaded.
Definition at line 210 of file CPWindowController.j.
Returns the window title based on the document's name.
aDisplayName | the document's filename |
Definition at line 512 of file CPWindowController.j.
|
implementation |
The method notifies the controller that it's window is about to load.
Definition at line 217 of file CPWindowController.j.