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.

Class Methods

updater

Convenience method that returns a new instance of this class.

+ (instancetype)updater

Return Value

A new instance of this class.

Declared In

PMTweenObjectUpdater.h

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)additiveUpdates

Discussion

@remarks The default value is NO.

Declared In

PMTweenObjectUpdater.h

replaceObject: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 *)propertyKeyPath

Parameters

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.h

setAdditiveUpdates:

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)additiveUpdates

Discussion

@remarks The default value is NO.

Declared In

PMTweenObjectUpdater.h

supportsObject:

This method verifies whether this class can update the specified object type.

- (BOOL)supportsObject:(NSObject *)object

Parameters

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