#import <CPObjectController.h>
Definition at line 2 of file CPObjectController.h.
- (void) add: |
|
(id) |
aSender |
|
|
implementation |
Creates and adds a sets the object as the controller's content.
- Parameters
-
id | aSender - The sender of the message. |
Reimplemented in CPArrayController.
Definition at line 250 of file CPObjectController.j.
- (void) addObject: |
|
(id) |
anObject |
|
|
implementation |
- (void) addObserver: |
|
(id) |
anObserver |
forKeyPath: |
|
(CPString) |
aKeyPath |
options: |
|
(CPKeyValueObservingOptions) |
options |
context: |
|
(id) |
context |
|
|
| |
|
implementation |
+ (BOOL) automaticallyNotifiesObserversForKey: |
|
(CPString) |
aKey |
|
|
implementation |
- (BOOL) automaticallyPreparesContent |
|
|
|
|
implementation |
Returns if the controller prepares the content automatically.
- Returns
- BOOL - YES if the content is prepared, otherwise NO.
Definition at line 172 of file CPObjectController.j.
- Returns
- BOOL - YES if you can added to the controller using add:
Definition at line 259 of file CPObjectController.j.
- Returns
- BOOL - Returns YES if you can remove the controller's content using remove:
Definition at line 277 of file CPObjectController.j.
Returns the controller's content object.
- Returns
- id - The content object of the controller.
Definition at line 120 of file CPObjectController.j.
- (void) encodeWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
- (id) initWithCoder: |
|
(CPCoder) |
aCoder |
|
|
implementation |
- (id) initWithContent: |
|
(id) |
aContent |
|
|
implementation |
Inits and returns a CPObjectController object with the given content.
- Parameters
-
id | aContent - The object the controller will use. |
- Returns
- id the CPObjectConroller instance.
Definition at line 100 of file CPObjectController.j.
- Returns
- BOOL - Returns YES if the content of the controller is editable, otherwise NO.
Definition at line 294 of file CPObjectController.j.
+ (CPSet) keyPathsForValuesAffectingCanAdd |
|
|
|
|
implementation |
+ (CPSet) keyPathsForValuesAffectingCanInsert |
|
|
|
|
implementation |
+ (CPSet) keyPathsForValuesAffectingCanRemove |
|
|
|
|
implementation |
+ (CPSet) keyPathsForValuesAffectingContentObject |
|
|
|
|
implementation |
Returns the class of what new objects will be when they are created.
- Returns
- Class - The class of new objects.
Definition at line 199 of file CPObjectController.j.
- (void) remove: |
|
(id) |
aSender |
|
|
implementation |
- (void) removeObject: |
|
(id) |
anObject |
|
|
implementation |
- (void) removeObserver: |
|
(id) |
anObserver |
forKeyPath: |
|
(CPString) |
aKeyPath |
|
|
| |
|
implementation |
- (CPArray) selectedObjects |
|
|
|
|
implementation |
Returns a proxy object representing the controller's selection.
Definition at line 310 of file CPObjectController.j.
- (void) setAutomaticallyPreparesContent: |
|
(BOOL) |
shouldAutomaticallyPrepareContent |
|
|
implementation |
Sets whether the controller automatically creates and inserts new content objects automatically when loading from a cib file. If you pass YES and the controller uses prepareContent to create the content object. The default is NO.
- Parameters
-
BOOL | shouldAutomaticallyPrepareContent - YES if the content should be prepared, otherwise NO. |
Definition at line 163 of file CPObjectController.j.
- (void) setContent: |
|
(id) |
aContent |
|
|
implementation |
- (void) setEditable: |
|
(BOOL) |
shouldBeEditable |
|
|
implementation |
Sets whether the controller allows for the editing of the content.
- Parameters
-
BOOL | shouldBeEditable - YES if the content should be editable, otherwise NO. |
Definition at line 286 of file CPObjectController.j.
- (void) setObjectClass: |
|
(Class) |
aClass |
|
|
implementation |
Sets the object class when creating new objects.
- Parameters
-
Class | - the class of new objects that will be created. |
Definition at line 189 of file CPObjectController.j.
The documentation for this class was generated from the following files: