Re: Horizontally scrolling NSTextView in IB
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