• 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: Lockup Problem with Progress Indicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lockup Problem with Progress Indicator


  • Subject: Re: Lockup Problem with Progress Indicator
  • From: "Mark's Studio" <email@hidden>
  • Date: Fri, 2 Apr 2004 23:17:46 +0200

call this from the thread
[self performSelectorOnMainThread:@selector(updateProgress:)
withObject:nil waitUntilDone:NO]

-(void)updateProgress:(id)value{
update progressView and reload tableview....
}

don't update it from the thread

On 2/4-2004, at 22:46, Brant Sears wrote:

> I'm having some problems with NSProgressIndicator. I am running into
> situations where my progress indicators are locking up and failing to
> animate properly. I have a background thread that is performing an
> operation
> and attempting to update a determinate progress bar. I also have an
> indeterminate progress indicator running (which is the spinning style).
> Sometimes (maybe 50% of the time) these indicators become "stuck".
> When this
> happens, I notice that the heartbea thread seems to be stalled in a
> wait
> state waiting for some semaphore to be released.
>
> It looks like the call is [NSViewHierarchyLock
> lockForReadingWithExceptionHandler:] is being called.
>
> My background thread is also calling realoadData on an NSTableView. The
> table view is correctly being updated. I am not doing anything special
> to
> try to call reloadData from the maint thread - I just call it from the
> background thread. I did try to make sure I at least start and stop the
> progress indicators from the main thread.
>
> Any ideas on what I could be doing wrong?
>
> Brant Sears
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
>
Peter Mark

Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Lockup Problem with Progress Indicator (From: Brant Sears <email@hidden>)

  • Prev by Date: NSTextView Scrollbar Bug
  • Next by Date: -undoManagerForTextView: question
  • Previous by thread: Lockup Problem with Progress Indicator
  • Next by thread: Re: Lockup Problem with Progress Indicator
  • Index(es):
    • Date
    • Thread