• 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
Correct way to scale an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Correct way to scale an NSTextView
      • From: email@hidden
    • Re: Correct way to scale an NSTextView
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: alias not resolving after a movePath
  • Next by Date: Re: Correct way to scale an NSTextView
  • Previous by thread: NSTableView -- possible to override autoscroll behavior?
  • Next by thread: Re: Correct way to scale an NSTextView
  • Index(es):
    • Date
    • Thread