views:

142

answers:

0

I have a very basic app I'm using for experimenting with Core Animation.

NSWindow -ContentView --CustomView ---NSTextField

I set the content view to be layer backed in interface builder and create a transform.rotation animation.

When I add this to the content view it rotates properly, but the NSTextField also remains painted at the original location (i.e. two NSTextFields are now visible, one at the transformed location and one at the original location).

This also appears to be true for other UI elements set to draw their own background. e.g. if I create an NSLabel and set it to a specific background color and check the set draws background box then it has the same issue.

How do I avoid this?