Re: Text System Locks Up - Can't Find Reason
Re: Text System Locks Up - Can't Find Reason
- Subject: Re: Text System Locks Up - Can't Find Reason
- From: Seth Willits <email@hidden>
- Date: Wed, 11 Jun 2014 17:52:19 -0700
On Jun 11, 2014, at 5:42 PM, Kyle Sluder <email@hidden> wrote:
> Seth, did you notice that if you change backgroundLayoutEnabled and
> allowsNonContiguousLayout to NO in -windowDidLoad, that the scrollbar
> gets perpetually longer as you scroll? Very strange indeed.
Yep. That's expected AFAIK. Since you've told it layout must be contiguous, when laying out glyph N, all glyphs from 0 to N-1 are already laid out. Also, since background layout is disabled, it will only layout what it's asked to, which so far is only what's visible. Since only part of the text has been laid out, the text view is fitted to what's been laid out. When background layout is enabled, I'm not actually sure how it figure out how big to make the text view, particularly so quickly.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden