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: Kyle Sluder <email@hidden>
- Date: Thu, 12 Jun 2014 12:33:46 -0700
On Jun 12, 2014, at 11:49 AM, Seth Willits <email@hidden> wrote:
>
> On Jun 12, 2014, at 11:25 AM, Kyle Sluder <email@hidden> wrote:
>
>>>> For some reason it doesn't like the below - you need to comment that out, and uncheck that option in IB:
>>>>
>>>> self.textView.layoutManager.allowsNonContiguousLayout = YES;
>>>>
>>>> At least that's how I fixed it :) Not sure why it doesn't like that property when using IB.
>>>
>>> That's not fixing it, it's just avoiding the problem. "Fast" has it
>>> enabled. It's on by default in every text view.
>>
>> Well, what if you don't use that, and instead just send
>> -ensureLayoutForCharactersInRange: to the text view's layout manager?
>
> Why would I want to? That'd block the calling thread until the layout was done, which defeats the purpose of allowing non-contiguous layout.
Because your alternative is apparently a hang.
--Kyle Sluder
_______________________________________________
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