• 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: unable to update UI on main thread in 10.13
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >unable to update UI on main thread in 10.13 (From: sqwarqDev <email@hidden>)
 >Re: unable to update UI on main thread in 10.13 (From: David Duncan <email@hidden>)
 >Re: unable to update UI on main thread in 10.13 (From: sqwarqDev <email@hidden>)
 >Re: unable to update UI on main thread in 10.13 (From: David Duncan <email@hidden>)
 >Re: unable to update UI on main thread in 10.13 (From: sqwarqDev <email@hidden>)
 >Re: unable to update UI on main thread in 10.13 (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: [ANN] Nursery Framework 1.0.1 (build with Xcode 9) released
  • Next by Date: Can anyone suggest an open source license for Nursery framework?
  • Previous by thread: Re: unable to update UI on main thread in 10.13
  • Next by thread: Can anyone suggest an open source license for Nursery framework?
  • Index(es):
    • Date
    • Thread