Re: Progress bar on front NSPanel is grey not blue??
Re: Progress bar on front NSPanel is grey not blue??
- Subject: Re: Progress bar on front NSPanel is grey not blue??
- From: "Theodore H. Smith" <email@hidden>
- Date: Thu, 13 Apr 2006 14:58:27 +0100
Unfortunately, this hasn't changed anything.
I can't make this as a separate thread. I'm porting code written for
the PC, and the original just doesn't work that way.
the useThreadedAnimation: trick didn't work unfortunatealy. I am
doing this:
[p setUsesThreadedAnimation:true];
but it doesn't work! Same greyness.
You are indeed correct about the whole loop thing. You have two
choices as I see it.
1. Spin the processing off in a separate thread. This is what you
ought to do.
2. Set your progress indicator to useThreadedAnimation: This will
cause it by some magic to draw itself in the appropriate colour.
You can then do away with the [p display] method which is nice.
If you go with option 2, what i recommend doing is to subclass
NSProgressIndicator just so that it sets the threaded animation
property itself upon awakeFromNib.
You could possibly also possibly try calling display of the panel
itself.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden