#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 248 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 |
Whether -willChangeValueForKey/-didChangeValueForKey should automatically be invoked when the setter of the given key is used. The default is YES. If you override this method to return NO for some key, you will need to call -willChangeValueForKey/-didChangeValueForKey manually to be KVO compliant.
The default implementation of this method will check if the receiving class implements + (BOOL)automaticallyNotifiesObserversOf<aKey>
and return the response of that method if it exists.
Reimplemented from CPObject.
Definition at line 63 of file CPObjectController.j.
- (BOOL) automaticallyPreparesContent |
|
|
|
|
implementation |
Returns if the controller prepares the content automatically.
- Returns
- BOOL - YES if the content is prepared, otherwise NO.
Definition at line 170 of file CPObjectController.j.
- Returns
- BOOL - YES if you can added to the controller using add:
Definition at line 257 of file CPObjectController.j.
- Returns
- BOOL - Returns YES if you can remove the controller's content using remove:
Definition at line 275 of file CPObjectController.j.
Returns the controller's content object.
- Returns
- id - The content object of the controller.
Definition at line 118 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 292 of file CPObjectController.j.
+ (CPSet) keyPathsForValuesAffectingCanAdd |
|
|
|
|
implementation |
+ (CPSet) keyPathsForValuesAffectingCanInsert |
|
|
|
|
implementation |
+ (CPSet) keyPathsForValuesAffectingCanRemove |
|
|
|
|
implementation |
+ (CPSet) keyPathsForValuesAffectingContentObject |
|
|
|
|
implementation |
Creates and returns a new object of the appropriate class.
- Returns
- id - The object created.
Definition at line 214 of file CPObjectController.j.
Returns the class of what new objects will be when they are created.
- Returns
- Class - The class of new objects.
Definition at line 197 of file CPObjectController.j.
- (void) remove: |
|
(id) |
aSender |
|
|
implementation |
- (void) removeObject: |
|
(id) |
anObject |
|
|
implementation |
- (void) removeObserver: |
|
(id) |
anObserver |
forKeyPath: |
|
(CPString) |
aKeyPath |
|
|
| |
|
implementation |
Returns a proxy object representing the controller's selection.
Definition at line 308 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 161 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 284 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 187 of file CPObjectController.j.
The documentation for this class was generated from the following files: