Correct way to scale an NSTextView
Correct way to scale an NSTextView
- Subject: Correct way to scale an NSTextView
- From: Keith Blount <email@hidden>
- Date: Fri, 11 Nov 2005 12:19:35 -0800 (PST)
There must be a correct way to scale an NSTextView,
and yet, no matter what I try, it is dodgy. For
instance, I rescale an NSTextView using
-scaleUnitSquareToSize:. It works nicely. But then I
resize the view, and a scrollbar appears out of
nowhere, even though the text view doesn't need one;
apparently, the clip view has decided that the the
text is not anywhere near the bottom of the view.
And yes, I know that the TextEdit example demonstrates
how to scale a text view; but this is not what I want.
That shows how to scale the whole text view, width and
height. I just want to scale the text, with no need
for a horizontal scroller.
What really surprises me is that there is not much on
this out there; I guess this means that I am missing
the obvious.
Any pointers would be much appreciated.
Many thanks,
Keith
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
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