#import <CPObjectController.h>
Class Methods | |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + initialize |
(CPSet) | + keyPathsForValuesAffectingCanAdd |
(CPSet) | + keyPathsForValuesAffectingCanInsert |
(CPSet) | + keyPathsForValuesAffectingCanRemove |
(CPSet) | + keyPathsForValuesAffectingContentObject |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(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 |
CPObjectController is a bindings-compatible controller class. Properties of the content object of an object of this class can be bound to user interface elements to change and access their values.
The content of an CPObjectController instance is an CPMutableDictionary object by default. This allows a single CPObjectController instance to be used to manage several properties accessed by key value paths. The default content object class can be changed by calling setObjectClass:, which a subclass must override.
Definition at line 2 of file CPObjectController.h.
|
implementation |
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 300 of file CPObjectController.j.
|
implementation |
Sets the controller's content object.
id | anObject - The object to set for the controller. |
Reimplemented in CPArrayController.
Definition at line 275 of file CPObjectController.j.
|
implementation |
Reimplemented from CPObject.
Definition at line 394 of file CPObjectController.j.
|
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 66 of file CPObjectController.j.
|
implementation |
Returns if the controller prepares the content automatically.
Definition at line 175 of file CPObjectController.j.
|
implementation |
Reimplemented from CPObject.
Reimplemented in CPArrayController.
Provided by category CPObjectController(CPCoding).
Definition at line 462 of file CPObjectController.j.
|
implementation |
Definition at line 309 of file CPObjectController.j.
|
implementation |
Definition at line 327 of file CPObjectController.j.
|
implementation |
Returns the controller's content object.
Definition at line 123 of file CPObjectController.j.
|
implementation |
Reimplemented from CPController.
Reimplemented in CPArrayController, and CPDictionaryController.
Provided by category CPObjectController(CPCoding).
Definition at line 444 of file CPObjectController.j.
|
implementation |
Returns the entity name.
Definition at line 201 of file CPObjectController.j.
|
implementation |
Returns the fetch predicate.
Definition at line 221 of file CPObjectController.j.
|
implementation |
Reimplemented from CPController.
Reimplemented in CPArrayController, and CPDictionaryController.
Definition at line 92 of file CPObjectController.j.
|
implementation |
Reimplemented from CPObject.
Reimplemented in CPArrayController.
Definition at line 52 of file CPObjectController.j.
|
implementation |
Reimplemented from CPController.
Reimplemented in CPArrayController, and CPDictionaryController.
Provided by category CPObjectController(CPCoding).
Definition at line 418 of file CPObjectController.j.
|
implementation |
Inits and returns a CPObjectController object with the given content.
id | aContent - The object the controller will use. |
Definition at line 103 of file CPObjectController.j.
|
implementation |
Definition at line 344 of file CPObjectController.j.
|
implementation |
Definition at line 74 of file CPObjectController.j.
|
implementation |
Definition at line 79 of file CPObjectController.j.
|
implementation |
Reimplemented in CPArrayController.
Definition at line 84 of file CPObjectController.j.
|
implementation |
Definition at line 61 of file CPObjectController.j.
|
implementation |
Creates and returns a new object of the appropriate class.
Reimplemented in CPDictionaryController.
Definition at line 266 of file CPObjectController.j.
|
implementation |
Returns the class of what new objects will be when they are created.
Definition at line 249 of file CPObjectController.j.
|
implementation |
Definition at line 389 of file CPObjectController.j.
|
implementation |
Overridden by a subclass that require control over the creation of new objects.
Reimplemented in CPArrayController.
Definition at line 229 of file CPObjectController.j.
|
implementation |
Removes the content object from the controller.
id | aSender - The sender of the message. |
Reimplemented in CPArrayController.
Definition at line 318 of file CPObjectController.j.
|
implementation |
Removes a given object from the controller.
id | anObject - The object to remove from the receiver. |
Reimplemented in CPArrayController.
Definition at line 287 of file CPObjectController.j.
|
implementation |
Reimplemented from CPObject.
Definition at line 400 of file CPObjectController.j.
|
implementation |
Reimplemented in CPArrayController.
Definition at line 352 of file CPObjectController.j.
|
implementation |
Returns a proxy object representing the controller's selection.
Definition at line 360 of file CPObjectController.j.
|
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.
BOOL | shouldAutomaticallyPrepareContent - YES if the content should be prepared, otherwise NO. |
Definition at line 166 of file CPObjectController.j.
|
implementation |
Sets the content object for the controller.
id | aContent - The new content object for the controller. |
Reimplemented in CPArrayController.
Definition at line 132 of file CPObjectController.j.
|
implementation |
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 336 of file CPObjectController.j.
|
implementation |
Sets the entity name the controller handles.
CPString | newEntityName - The new entity name. |
Definition at line 185 of file CPObjectController.j.
|
implementation |
Sets the predicate used to fetch content.
CPPredicate | newPredicate - The fetch predicate. |
Definition at line 211 of file CPObjectController.j.
|
implementation |
Sets the object class when creating new objects.
Class | - the class of new objects that will be created. |
Definition at line 239 of file CPObjectController.j.
|
implementation |
Synthesized accessor method.
Provided by category CPObjectController(CPSynthesizedAccessors).
Definition at line 936 of file CPObjectController.j.
|
implementation |
Synthesized accessor method.
Provided by category CPObjectController(CPSynthesizedAccessors).
Definition at line 928 of file CPObjectController.j.