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

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
References: 
 >Correct way to scale an NSTextView (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: xcode 2.2 coredata accessors
  • Next by Date: Re: Volunteers to test on 10.2
  • Previous by thread: Re: Correct way to scale an NSTextView
  • Next by thread: Self-Updating Bundle
  • Index(es):
    • Date
    • Thread