• 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: Horizontally scrolling NSTextView in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Horizontally scrolling NSTextView in IB


  • Subject: Re: Horizontally scrolling NSTextView in IB
  • From: Camillo Lugaresi <email@hidden>
  • Date: Fri, 6 Jan 2006 00:42:32 +0100

On 05/gen/06, at 21:58, Camillo Lugaresi wrote:

However, I encountered a weird bug with that approach: the scroller would only grow horizontally to a certain (small) limit, after which I could continue typing on a single line, but I couldn't scroll far enough to see its end. This was fixed when I changed the width of the NSTextView's layout rectangle to a very big value, then turned it back to match the width of the NSScrollView. Even though all visible properties in IB were the same as before, the bug was now gone and the scroller could grow freely. What happened?
A wild guess is that my maneuver might have increased the NSTextView's maxSize, but why isn't that visible anywhere in IB?

That guess turned out to be correct, btw:

(gdb) print (NSSize) [cmd_text maxSize]
$1 = {
  width = 2000,
  height = 10000000
}

Camillo
_______________________________________________
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: Horizontally scrolling NSTextView in IB
      • From: Boyd Collier <email@hidden>
References: 
 >Horizontally scrolling NSTextView in IB (From: Camillo Lugaresi <email@hidden>)

  • Prev by Date: Re: How to create Daemon for Mac 10.4
  • Next by Date: Re: Bindings Problem
  • Previous by thread: Re: Horizontally scrolling NSTextView in IB
  • Next by thread: Re: Horizontally scrolling NSTextView in IB
  • Index(es):
    • Date
    • Thread