Re: Rotate NSTextView
Re: Rotate NSTextView
- Subject: Re: Rotate NSTextView
- From: Michael Monscheuer <email@hidden>
- Date: Thu, 28 Apr 2005 20:45:09 +0200
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden