<p>Specifically, I am looking to use CA on properties of types other than </p>

<ul>
<li>integers and doubles</li>
<li>CGRect, CGPoint, CGSize, and CGAffineTransform structures</li>
<li>CATransform3D data structures</li>
<li>CGColor and CGImage references</li>
</ul>

<p>and in objects other than CALayers or NSViews</p>

[{'answer_id': 48564, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Well, it seems I cannot do that. What I should be doing is [subclassing NSAnimation](<a href="https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/AnimationGuide/Articles/TimingAnimations.html" rel="nofollow noreferrer">https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/AnimationGuide/Articles/TimingAnimations.html</a> subclassing NSAnimation). This will work on a MacOS 10.4+ app, but not on Cocoa Touch, in which I cannot find any alternatives apart from using a NSTimer.</p>\n'}, {'answer_id': 59168, 'author': 'millenomi', 'author_id': 6061, 'author_profile': 'https://Stackoverflow.com/users/6061', 'pm_score': 1, 'selected': False, 'text': '<p>If you can do the changes yourself and the class you use is custom, you might want to add a setProgress:(float) f method to your class and use CA to animate it, then modify the desired properties as needed as a function of f.</p>\n\n<p>Just do a</p>\n\n<pre><code>[[someObject animator] setValue:[NSNumber numberWithFloat:1.0] forKeyPath:@"someCustomProperty.progress"];\n</code></pre>\n\n<p>or if the object doesn\'t have an animator, create the correct CAAnimation yourself.</p>\n'}, {'answer_id': 242173, 'author': 'Louis Gerbarg', 'author_id': 30506, 'author_profile': 'https://Stackoverflow.com/users/30506', 'pm_score': 0, 'selected': False, 'text': '<p>I am not sure exactly what you are trying to do, but if you want to use CA on other properties that is not an issue. You just need to register appropriate actions for the key path. There is an example of doing this in Apple\'s Core Animation documentaation, using <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Actions.html#//apple_ref/doc/uid/TP40006095" rel="nofollow noreferrer">CAAction</a>. Specifically you implement actionForLayer:forKey: to configure the default animation behaviour of that key, and if you want to make the property animation implicitly you implement runActionForKey:object:arguments: .</p>\n\n<p>As for animating objects other than CALayers, I really don\'t understand. Layers are the root visual entity in Core Animation. Additionally, on the iPhone every single UIView is backed on a layer, I do not believe there is anything on the iPhone\'s screen that is not in a layer, so I don\'t understand why you are worried about using animation on something that is not a CALayer.</p>\n'}]
['https://Stackoverflow.com/questions/47591', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']