I have a custom subclass of NSView that I want to animate with Core Animation. I already (without CA) set the position and rotation of these views using the NSView setFrameOrigin and setFrameRotation methods. However, no matter what I do, as soon as I add a layer that supports the views, I cannot make them rotate.
I tried using the NSView methods setFrameRotation and setFrameCenterRotation. The latter moves the view a bit, but does not rotate its contents. The first has no effect. Applying CATransform3D, created by CATransform3DRotate, to the view level also has no effect.
I feel a little silly asking this question because it seems like it should be easy, but for life I can't figure out how to make it work. Someone please make me pat me on the forehead how easy it is. :)
source
share