• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rotate NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Rotate NSTextView (From: "Nick D'Amato" <email@hidden>)

  • Prev by Date: Re: Class-Dump Protection??
  • Next by Date: Re: [OT] WWDC hotels for car-less people?
  • Previous by thread: Rotate NSTextView
  • Next by thread: Breaking into debugger after program hangs....
  • Index(es):
    • Date
    • Thread