• 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
Progress indicator stuck until mouse move
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Progress indicator stuck until mouse move


  • Subject: Progress indicator stuck until mouse move
  • From: 정다운 <email@hidden>
  • Date: Fri, 28 May 2004 15:27:58 +0900 (JST)

Hi,

I know someone had a problem before with progress bars
(NSProgressIndicator) not updating inside table views unless you
clicked. I also had a similar problem, but the progress bar is a
subview of a normal NSView (not a table).

The progress bar set to indeterminate and threaded, and is attached to
a superview using addSubview just before calling startAnimation to make
it visible.

But startAnimation is unreliable -- sometimes I have to move the mouse
before the animation actually starts. I can't always reproduce the
issue either (An additional note: the work of attaching the progress
bar and calling startAnimation is done from a different thread). I
attach/detach the progress bar to and from a super view, because the
"display when stopped" progress bar attribute is flakey when using
threaded animation (my guess is it's a related problem).

An ugly workaround, which is nevertheless 100% effective for me, is to
make a fake mouse-moved NSEvent and post it after startAnimation. If
you ever run into the same problem, this seems to be the only effective
solution that works even for pre-Panther.

Various other plausible solutions do not work. These include
performSelectorOnMainThread, [[NSRunLoop currentLoop] run], -[NSWindow
display], and -[NSView displayIfNeeded] and other display methods.

So, my bug or Apple's?

Cheers,
DW


_____________________________________________________________________
?9;[ FmAvAv?! 8^@O@; :83;<<?d - >_HD! 8^@O
http://mail.yahoo.co.kr
=EBw,A_0mBw,Aw0E7! 8E90@L GQ@Z8.?! - >_HD! @Z5?Bw
http://autos.yahoo.co.kr/autos/
_______________________________________________
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.


  • Prev by Date: Re: Retaining NSInputStream working with NSStream
  • Next by Date: Categories and Compiler Warnings
  • Previous by thread: RE: Code Guidelines
  • Next by thread: Categories and Compiler Warnings
  • Index(es):
    • Date
    • Thread