PMTweenObjectUpdater Class Reference
| Inherits from | NSObject |
| Conforms to | PMTweenObjectUpdating |
| Declared in | PMTweenObjectUpdater.h PMTweenObjectUpdater.m |
Overview
PMTweenObjectUpdater is the default class used by PMTweenUnit to update data structures, either NSValue objects such as NSNumber, CGPoint, CGSize, CGRect, CGAffineTransform, or CATransform3D, and other NSObject types like UIColor.
Instance Methods
additiveUpdates
A Boolean which determines whether to update a property value using additive tweening. When the value is YES, values passed in to replaceObject:newPropertyValue:propertyKeyPath are added to the existing value, instead of replacing it.
- (BOOL)additiveUpdatesDiscussion
@remarks The default value is NO.
Declared In
PMTweenObjectUpdater.hreplaceObject:newPropertyValue:propertyKeyPath:
This method replaces an element of a NSValue object or NSObject subclass by reassigning the parent value.
- (NSObject *)replaceObject:(NSObject *)objectToUpdate newPropertyValue:(double)propertyValue propertyKeyPath:(NSString *)propertyKeyPathParameters
- objectToUpdate
The NSValue object that should be updated.
- propertyValue
The value of the NSValue object property to be updated.
- propertyKeyPath
A keyPath of the object’s property.
Return Value
An updated version of the object.
Declared In
PMTweenObjectUpdater.hsetAdditiveUpdates:
A Boolean which determines whether to update a property value using additive tweening. When the value is YES, values passed in to replaceObject:newPropertyValue:propertyKeyPath are added to the existing value, instead of replacing it.
- (void)setAdditiveUpdates:(BOOL)additiveUpdatesDiscussion
@remarks The default value is NO.
Declared In
PMTweenObjectUpdater.hsupportsObject:
This method verifies whether this class can update the specified object type.
- (BOOL)supportsObject:(NSObject *)objectParameters
- object
An object to verify support for.
Return Value
A Boolean value representing whether the object is supported by this class.
Declared In
PMTweenObjectUpdater.h