Re: unable to update UI on main thread in 10.13
Re: unable to update UI on main thread in 10.13
- Subject: Re: unable to update UI on main thread in 10.13
- From: sqwarqDev <email@hidden>
- Date: Sat, 28 Oct 2017 15:54:26 +0700
>
> Better still, don’t store the attributed string persistently anywhere, but
> pass it through the background processing then on to the main thread as a
> parameter to the updateUI function.
Thanks for that suggestion; it wasn’t the answer, but it did lead me to rewrite
significant portions of my code and the whole is a lot better for it.
I finally stumbled across the answer by accident (one for the archives, this):
In IB, the textview had the ‘non-contiguous Layout’ option checked. According
to the docs[1], this is supposed to be off by default for reasons which exactly
apply to my situation, but I note that if you build a new project in Xcode 9
and just throw in a bog-standard NSTextView, that option comes along already
checked.
1. See: https://developer.apple.com/documentation/uikit/nslayoutmanager
Best
Phil
@sqwarq
_______________________________________________
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