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: Mike Abdullah <email@hidden>
- Date: Wed, 12 Apr 2006 22:23:25 +0100
On 12 Apr 2006, at 21:46PM, Shawn Erickson wrote:
On 4/12/06, Mike Abdullah <email@hidden> wrote:
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.
No need to subclass just tell it to use threaded animation...
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSProgressIndicator.html#//
apple_ref/occ/instm/NSProgressIndicator/setUsesThreadedAnimation:>
-Shawn
I'm well aware that you don't need to subclass it. It's just that I
have found with practice when I need such a progress indicator, it is
easier to simply set the class in Interface Builder than to write it
into the code. I guess it's just a case of your own coding style.
Mike.
_______________________________________________
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