Re: How to update UI from a background thread
Re: How to update UI from a background thread
- Subject: Re: How to update UI from a background thread
- From: David Hoerl <email@hidden>
- Date: Wed, 21 Sep 2016 11:01:28 -0700
> How can I update my UI from a background thread?
>
> I have a method that does a LOT of intense processing, it calls a
delegate method in my Window Controller which appends it to a Logging
Scroll View, however nothing shows up in the Scroll View although it
NSLog’s the string ok.
---
There are two components to your "updating the UI". One is creating a
tree of views and subviews, the second actually showing them in the UI.
What's p-reviously worked for me is doing the creation in a background
thread, and when all is done adding these views as subviews of a visible
view. Not that I've ever seen this as a sanctioned technique by Apple,
its just worked for me in shipping apps.
David
_______________________________________________
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