mlRe: Correct way to scale an NSTextView
mlRe: Correct way to scale an NSTextView
- Subject: mlRe: Correct way to scale an NSTextView
- From: Keith Blount <email@hidden>
- Date: Fri, 11 Nov 2005 14:43:14 -0800 (PST)
Sorry, I thought I made it clear that I wanted to
scale the view, not the font - obviously not. :)
Essentially, I have a pop-up button that shows 200%,
100%, 50% etc, so that the use can make the text
bigger regardless of how it will print - so I am
talking about scaling the text view, not the font.
Anyhow, looking around at other programs, it seems
that it is not necessarily just my problem. Scaling
text (that is, a *text view*) in DevonThink or Avenir
- to check just two - reveals exactly the same problem
that I have been experiencing; namely, the scroll bar
appears for a view that has been scaled even where
there is not really enough text to justify it. It
seems that scaling a text view confuses the scroll
view somewhat...
If that's not too clear, just try calling
scaleUnitSquareToSize: on a text view to make it
bigger , then resize the window; you'll see what I
mean.
Thanks,
Keith
FROM : Andreas Mayer
DATE : Fri Nov 11 21:49:28 2005
Am 11.11.2005 um 21:19 Uhr schrieb Keith Blount:
> That shows how to scale the whole text view, width
and
> height. I just want to scale the text,
I don't get it. Do you want to resize the view or just
the displayed
text (i.e. change the font size)? Those are two
completely different
things.
Andreas
--- ORIGINAL MESSAGE ---
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! FareChase: Search multiple travel sites in one click.
http://farechase.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