• 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: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?


  • Subject: Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 13 Mar 2009 18:29:51 -0400
  • Organization: Rogue Research Inc.

Rob,

Thanks for your reply.  But what you say can't be so.  As I said,
sometimes my 'hint' is accepted and the progress bar animates, and I am
definitely blocking the main thread with my own code at the same time.
But it only works sometimes, and I'm looking to make it work all the
time.  But the docs are not encouraging.


On 3/13/09 3:25 PM, Rob Ross said:

>No, none at all. The main AppKit thread is the thread that will be
>repainting your progress bar. If it's blocked, it can't paint the new
>state of your progress bar.
>
>Rob
>
>
>On Mar 13, 2009, at 3:20 PM, Sean McBride wrote:
>
>> Hi all,
>>
>> I'm trying to make a cheap, modal, indeterminate progress dialog, but
>> I'm having trouble animating the progress bar.
>>
>> (Yes, I know this is only slightly better than the spinning wheel of
>> death.  Yes, I know I should thread my long running code.  Yes, I
>> know I
>> should not block the main thread.  One day...)
>>
>> The docs for NSProgressIndicator's setUsesThreadedAnimation say "This
>> value is only a hint and may be ignored".  Indeed, sometimes it
>> animates
>> and sometimes it does not.  I can't find any pattern.
>>
>> Is there a way to reliably make an NSProgressIndicator animate while
>> the
>> main thread is blocked?
>>
>> Thanks,
>>
>> --
>> ____________________________________________________________
>> Sean McBride, B. Eng                 email@hidden
>> Rogue Research                        www.rogue-research.com
>> Mac Software Developer              Montréal, Québec, Canada
>>
>>
>> _______________________________________________
>>
>> 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


_______________________________________________

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: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
      • From: Aki Inoue <email@hidden>
    • Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
      • From: Rob Ross <email@hidden>
References: 
 >NSProgressIndicator's setUsesThreadedAnimation only works sometimes? (From: "Sean McBride" <email@hidden>)
 >Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes? (From: Rob Ross <email@hidden>)

  • Prev by Date: Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
  • Next by Date: Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
  • Previous by thread: Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
  • Next by thread: Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?
  • Index(es):
    • Date
    • Thread