Re: Correct way to scale an NSTextView
Re: Correct way to scale an NSTextView
- Subject: Re: Correct way to scale an NSTextView
- From: email@hidden
- Date: Tue, 15 Nov 2005 09:56:26 +0000
Keith,
I am a newbie round here. So forgive me if I am pointing out
something obvious.
There is an example of scaling a view containing text in the Text
Edit example.
The code is a bit hard to read because the app has two modes.
Glyn
On 11 Nov 2005, at 20:19, Keith Blount wrote:
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:
40mac.com
This email sent to email@hidden
_______________________________________________
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