![]() |
API 0.9.5
|
#import <CPObjectController.h>
Instance Methods | |
(void) | - add: |
(void) | - addObject: |
(void) | - addObserver:forKeyPath:options:context: |
(BOOL) | - automaticallyPreparesContent |
(void) | - awakeFromCib |
(BOOL) | - canAdd |
(BOOL) | - canRemove |
(id) | - content |
(void) | - encodeWithCoder: |
(id) | - init |
(id) | - initWithCoder: |
(id) | - initWithContent: |
(BOOL) | - isEditable |
(id) | - newObject |
(Class) | - objectClass |
(id) | - observedKeys |
(void) | - prepareContent |
(void) | - remove: |
(void) | - removeObject: |
(void) | - removeObserver:forKeyPath: |
(CPArray) | - selectedObjects |
(id) | - selection |
(void) | - setAutomaticallyPreparesContent: |
(void) | - setContent: |
(void) | - setEditable: |
(void) | - setObjectClass: |
Class Methods | |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(id) | + initialize |
(CPSet) | + keyPathsForValuesAffectingCanAdd |
(CPSet) | + keyPathsForValuesAffectingCanInsert |
(CPSet) | + keyPathsForValuesAffectingCanRemove |
(CPSet) | + keyPathsForValuesAffectingContentObject |
Definition at line 2 of file CPObjectController.h.
- (void) add: | (id) | aSender |
Creates and adds a sets the object as the controller's content.
id | aSender - The sender of the message. |
Reimplemented in CPArrayController.
Definition at line 245 of file CPObjectController.j.
- (void) addObject: | (id) | anObject |
Sets the controller's content object.
id | anObject - The object to set for the controller. |
Reimplemented in CPArrayController.
Definition at line 220 of file CPObjectController.j.
- (void) addObserver: | (id) | anObserver | |
forKeyPath: | (CPString) | aKeyPath | |
options: | (CPKeyValueObservingOptions) | options | |
context: | (id) | context | |
Definition at line 339 of file CPObjectController.j.
+ (BOOL) automaticallyNotifiesObserversForKey: | (CPString) | aKey |
Reimplemented from CPObject.
Definition at line 60 of file CPObjectController.j.
- (BOOL) automaticallyPreparesContent |
Returns if the controller prepares the content automatically.
Definition at line 167 of file CPObjectController.j.
- (void) awakeFromCib |
Reimplemented from CPObject.
Reimplemented in CPArrayController.
Definition at line 393 of file CPObjectController.j.
- (BOOL) canAdd |
Definition at line 254 of file CPObjectController.j.
- (BOOL) canRemove |
Definition at line 272 of file CPObjectController.j.
- (id) content |
Returns the controller's content object.
Definition at line 115 of file CPObjectController.j.
- (void) encodeWithCoder: | (CPCoder) | aCoder |
Reimplemented from CPController.
Reimplemented in CPArrayController.
Definition at line 380 of file CPObjectController.j.
- (id) init |
Reimplemented from CPController.
Reimplemented in CPArrayController.
Definition at line 86 of file CPObjectController.j.
+ (id) initialize |
Reimplemented in CPArrayController.
Definition at line 49 of file CPObjectController.j.
- (id) initWithCoder: | (CPCoder) | aCoder |
Reimplemented from CPController.
Reimplemented in CPArrayController.
Definition at line 360 of file CPObjectController.j.
- (id) initWithContent: | (id) | aContent |
Inits and returns a CPObjectController object with the given content.
id | aContent - The object the controller will use. |
Definition at line 97 of file CPObjectController.j.
- (BOOL) isEditable |
Definition at line 289 of file CPObjectController.j.
+ (CPSet) keyPathsForValuesAffectingCanAdd |
Definition at line 68 of file CPObjectController.j.
+ (CPSet) keyPathsForValuesAffectingCanInsert |
Definition at line 73 of file CPObjectController.j.
+ (CPSet) keyPathsForValuesAffectingCanRemove |
Reimplemented in CPArrayController.
Definition at line 78 of file CPObjectController.j.
+ (CPSet) keyPathsForValuesAffectingContentObject |
Definition at line 55 of file CPObjectController.j.
- (id) newObject |
Creates and returns a new object of the appropriate class.
Definition at line 211 of file CPObjectController.j.
- (Class) objectClass |
Returns the class of what new objects will be when they are created.
Definition at line 194 of file CPObjectController.j.
- (id) observedKeys |
Definition at line 334 of file CPObjectController.j.
- (void) prepareContent |
Overridden by a subclass that require control over the creation of new objects.
Reimplemented in CPArrayController.
Definition at line 175 of file CPObjectController.j.
- (void) remove: | (id) | aSender |
Removes the content object from the controller.
id | aSender - The sender of the message. |
Reimplemented in CPArrayController.
Definition at line 263 of file CPObjectController.j.
- (void) removeObject: | (id) | anObject |
Removes a given object from the controller.
id | anObject - The object to remove from the receiver. |
Reimplemented in CPArrayController.
Definition at line 232 of file CPObjectController.j.
- (void) removeObserver: | (id) | anObserver | |
forKeyPath: | (CPString) | aKeyPath | |
Reimplemented from CPObject.
Definition at line 345 of file CPObjectController.j.
- (CPArray) selectedObjects |
Reimplemented in CPArrayController.
Definition at line 297 of file CPObjectController.j.
- (id) selection |
Returns a proxy object representing the controller's selection.
Definition at line 305 of file CPObjectController.j.
- (void) setAutomaticallyPreparesContent: | (BOOL) | shouldAutomaticallyPrepareContent |
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.
BOOL | shouldAutomaticallyPrepareContent - YES if the content should be prepared, otherwise NO. |
Definition at line 158 of file CPObjectController.j.
- (void) setContent: | (id) | aContent |
Sets the content object for the controller.
id | aContent - The new content object for the controller. |
Reimplemented in CPArrayController.
Definition at line 124 of file CPObjectController.j.
- (void) setEditable: | (BOOL) | shouldBeEditable |
Sets whether the controller allows for the editing of the content.
BOOL | shouldBeEditable - YES if the content should be editable, otherwise NO. |
Definition at line 281 of file CPObjectController.j.
- (void) setObjectClass: | (Class) | aClass |
Sets the object class when creating new objects.
Class | - the class of new objects that will be created. |
Definition at line 184 of file CPObjectController.j.