![]() |
API
0.9.6
|
#import <CPDocumentController.h>
Class Methods | |
(id) | + sharedDocumentController |
![]() | |
(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 |
Additional Inherited Members | |
![]() | |
Class | isa |
This class is responsible for managing an application's open documents.
Definition at line 2 of file CPDocumentController.h.
|
implementation |
Adds aDocument
under the control of the receiver.
aDocument | the document to add |
Definition at line 252 of file CPDocumentController.j.
|
implementation |
Provided by category CPDocumentController(Recents).
Definition at line 379 of file CPDocumentController.j.
|
implementation |
Provided by category CPDocumentController(Closing).
Definition at line 335 of file CPDocumentController.j.
|
implementation |
Definition at line 266 of file CPDocumentController.j.
|
implementation |
Definition at line 203 of file CPDocumentController.j.
|
implementation |
Returns the CPDocument subclass associated with aType
.
aType | the type of document |
nil
if no match was found Definition at line 324 of file CPDocumentController.j.
|
implementation |
Returns the document matching the specified URL. This method searches documents already open. It does not open the document at the URL if it is not already open.
aURL | the url of the document |
nil
if such a document is not open Definition at line 80 of file CPDocumentController.j.
|
implementation |
Returns the array of all documents being managed. This is the same as all open documents in the application.
Definition at line 243 of file CPDocumentController.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Definition at line 55 of file CPDocumentController.j.
|
implementation |
Creates a document from the contents of a URL, and sets the document's URL location as another URL.
anAbsoluteURL | the document's location |
absoluteContentsURL | the location of the document's contents |
aType | the document's data type |
aDelegate | receives a callback after the load has completed |
aSelector | the selector to invoke for the callback |
aContextInfo | an object passed as an argument for the callback |
nil
if there was an error Definition at line 194 of file CPDocumentController.j.
|
implementation |
Creates a document from the contents at the specified URL. Notifies the provided delegate with the provided selector afterwards.
anAbsoluteURL | the location of the document data |
aType | the document type |
aDelegate | the delegate to notify |
aSelector | the selector to notify with |
aContextInfo | the context information passed to the delegate |
Definition at line 178 of file CPDocumentController.j.
|
implementation |
Creates a document of the specified type.
aType | the document type |
anError | not used |
Definition at line 123 of file CPDocumentController.j.
|
implementation |
Opens a new document in the application.
aSender | the requesting object |
Definition at line 218 of file CPDocumentController.j.
|
implementation |
Provided by category CPDocumentController(Recents).
Definition at line 387 of file CPDocumentController.j.
|
implementation |
Provided by category CPDocumentController(Recents).
Definition at line 392 of file CPDocumentController.j.
|
implementation |
Definition at line 223 of file CPDocumentController.j.
|
implementation |
Opens the document at the specified URL.
anAbsoluteURL | the path to the document's file |
shouldDisplay | whether to display the document on screen |
anError | not used |
Definition at line 135 of file CPDocumentController.j.
|
implementation |
Creates a new document of the specified type.
aType | the type of the new document |
shouldDisplay | whether to display the document on screen |
Definition at line 101 of file CPDocumentController.j.
|
implementation |
Provided by category CPDocumentController(Recents).
Definition at line 370 of file CPDocumentController.j.
|
implementation |
Removes aDocument
from the control of the receiver.
aDocument | the document to remove |
Definition at line 261 of file CPDocumentController.j.
|
implementation |
Loads a document for a specified URL with it's content retrieved from another URL.
anAbsoluteURL | the document URL |
absoluteContentsURL | the location of the document's contents |
anError | not used |
nil
if there was an error Definition at line 164 of file CPDocumentController.j.
|
implementation |
Returns the singleton instance of the application's document controller. If it has not been created yet, it will be created then returned.
Definition at line 44 of file CPDocumentController.j.
Definition at line 271 of file CPDocumentController.j.