Skip navigation.
 
mlRe: Rotate NSTextView
FROM : Michael Monscheuer
DATE : Thu Apr 28 20:45:09 2005

Hi Nick!

Did you try NSView's -setFrameRotation: method?
This should work. You will not be able to edit rotated text view though:
Panther performs correct text drawing of rotated text views, but if you try to edit the text
you will get funny results. Insertion point is drawn at unrotated position.
Same with underlining of misspelled words. I think selection drawing is displayed correctly -
can't remember at the moment...
So: Apple implemented as much as they needed for the Finder ;-)
A method like -setFrameTransformation: would also be nice to have. If you would want to shear or
scale the views' frame you will run into much bigger problems...
No problems with transformation of views' coo system. But: Rotating the contents by
transforming the views' coo system clips out the drawings to an unrotated rect.

Michael

Related mailsAuthorDate
mlRotate NSTextView Nick D'Amato Apr 28, 09:13
mlRe: Rotate NSTextView Michael Monscheuer Apr 28, 20:45