Animated rotation of NSView contents
问题 I'm trying to rotate the contents of an NSView ( NSButton ) in-place (I.e. from the center. I want to convert - into | ). This can be done with setFrameCenterRotation: … However, I'm trying to animate this, and [[myview animator] setFrameCenterRotation: 90]; causes the control to first jump to the right, and then rotate around the bottom-left corner (0,0) back to the original location. Some people have suggested first setting the anchorPoint : [[myview layer] setAnchorPoint: NSMakePoint(0.5,