#import <CPWindowController.h>
Additional Inherited Members | |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
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 AppKit'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 301 of file CPWindowController.j.
|
implementation |
Definition at line 463 of file CPWindowController.j.
|
implementation |
Returns the CPDocument in the controlled window.
Definition at line 449 of file CPWindowController.j.
|
implementation |
Definition at line 328 of file CPWindowController.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Definition at line 62 of file CPWindowController.j.
|
implementation |
Initializes the controller with a window.
aWindow | the window to control |
Definition at line 72 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 94 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 105 of file CPWindowController.j.
|
implementation |
Definition at line 118 of file CPWindowController.j.
|
implementation |
Returns YES
if the window has been loaded. Specifically, if loadWindow has been called.
Definition at line 161 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 135 of file CPWindowController.j.
|
implementation |
Definition at line 478 of file CPWindowController.j.
|
implementation |
Definition at line 307 of file CPWindowController.j.
|
implementation |
Definition at line 320 of file CPWindowController.j.
|
implementation |
Sets the document that is inside the controlled window.
aDocument | the document in the controlled window |
Definition at line 230 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 458 of file CPWindowController.j.
|
implementation |
Definition at line 468 of file CPWindowController.j.
|
implementation |
Definition at line 291 of file CPWindowController.j.
|
implementation |
Definition at line 378 of file CPWindowController.j.
|
implementation |
Definition at line 333 of file CPWindowController.j.
|
implementation |
Sets the window to be controlled.
aWindow | the new window to control |
Definition at line 202 of file CPWindowController.j.
|
implementation |
Definition at line 473 of file CPWindowController.j.
|
implementation |
Shows the window.
aSender | the object requesting the show |
Definition at line 147 of file CPWindowController.j.
|
implementation |
Definition at line 296 of file CPWindowController.j.
|
implementation |
Sets the title of the window as the name of the document.
Definition at line 504 of file CPWindowController.j.
|
implementation |
Definition at line 423 of file CPWindowController.j.
|
implementation |
Definition at line 373 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 170 of file CPWindowController.j.
|
implementation |
Definition at line 483 of file CPWindowController.j.
|
implementation |
Definition at line 491 of file CPWindowController.j.
|
implementation |
The method notifies the controller that it's window has loaded.
Definition at line 215 of file CPWindowController.j.
Returns the window title based on the document's name.
aDisplayName | the document's filename |
Definition at line 517 of file CPWindowController.j.
|
implementation |
The method notifies the controller that it's window is about to load.
Definition at line 222 of file CPWindowController.j.