• 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 15:16:22 +0000 (GMT)

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

Well, my only suggestion was to set usesThreadedAnimation to NO. It may be that that causes Cocoa to use a timer internally, but you shouldn't be doing anything explicit with a timer with respect to the progress indicator.

Yes, we only did usesThreadedAnimation:NO - nothing weird.

Don't do that. You must always shunt such work to the main thread.

Hmm. Has that always been the case with OS X and/or Cocoa? I know an app should not do any drawing from anything but the main thread, but I thought that all the cocoa controls were smart enough to not draw directly when their set* methods are called. E.g., calling setStringValue will set the internal string and do nothing more than call setNeedsDisplay:YES, deferring drawing to the next time the main thread gets some time. Did I forget or never learn something more critical than that?

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


  • Follow-Ups:
    • Re: Progress bar problems on server persist
      • From: Alex Zavatone <email@hidden>
    • Re: Progress bar problems on server persist
      • From: Ken Thomases <email@hidden>
References: 
 >Re: Progress bar problems on server persist (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Progress bar problems on server persist
  • 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