• 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: Progress bar problems on server persist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Progress bar problems on server persist


  • Subject: Re: Progress bar problems on server persist
  • From: Steve Mills <email@hidden>
  • Date: Thu, 05 May 2016 16:14:04 +0000 (GMT)

On May 05, 2016, at 10:35 AM, Ken Thomases <email@hidden> wrote:

From <https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html#//apple_ref/doc/uid/10000057i-CH12-123427>:

"If a secondary thread of an application wants to cause portions of the view to be redrawn on the main thread, it must not do so using methods like display, setNeedsDisplay:, setNeedsDisplayInRect:, or setViewsNeedDisplay:. Instead, it should send a message to the main thread or call those methods using the performSelectorOnMainThread:withObject:waitUntilDone: method instead."

I've been reading that doc. I have no idea why I didn't know this before. Probably because I've had to do very little thread programming in my career. Lucky me!

Sent from iCloud's ridiculous UI, so, sorry about the formatting

_______________________________________________

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: 
 >Re: Progress bar problems on server persist (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Where are my bytes hiding?
  • Next by Date: Re: Progress bar problems on server persist
  • Previous by thread: Re: Progress bar problems on server persist
  • Next by thread: Re: Progress bar problems on server persist
  • Index(es):
    • Date
    • Thread