NSView animator setFrameCenterRotation looks bad (rotation not truly centered)
| Originator: | ewmailing | ||
| Number: | rdar://12258737 | Date Originated: | 2012-09-07 |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.8 |
| Classification: | UI/Usability | Reproducible: | Always |
07-Sep-2012 04:29 PM Eric Wing: Summary: I want to rotate NSView's with animation using the animator. One example is imagine rotating a magnetic compass around so the North pointer spins around to the bottom. Another example is simulating the iPhone image on screen and rotating the image as if they turned the phone landscape. This can kind of be achieved with NSView's setFrameCenterRotation: and the animator. However, the animation looks really bad and is kind of unusable. Instead of spinning around the center, it seems to simultaneously translate the image and rotate which creates a wobbly (seasick) animation while its rotating. Behind the scenes, I think the anchorPoint is in the bottom-left corner and it is being translated to the center. Then the animation rotates and then shifts back the anchorPoint. But whatever it is, it looks terrible, makes me seasick, and makes it hard to know how large the encompassing window/view needs to be to show the entire object spin around since it translates off its center point. This really should be fixed. Apple is notorious for perfecting all the little details. This is one of those details that needs to be perfected because it is obvious to anybody that it doesn't look right. Steps to Reproduce: Attached is a simple project with a button that rotates 90 degrees when you click it. Expected Results: Button should rotate perfectly around its center. Actual Results: Button rotates and translates in a wobbly way. Regression: I think this goes back to 10.5. 'RotateViewOld' uploaded at https://github.com/ewmailing/MyAppleBugs
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!