• 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: Progress bar on front NSPanel is grey not blue??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Progress bar on front NSPanel is grey not blue?? (From: "Theodore H. Smith" <email@hidden>)
 >Re: Progress bar on front NSPanel is grey not blue?? (From: Mike Abdullah <email@hidden>)
 >Re: Progress bar on front NSPanel is grey not blue?? (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: NSSecureTextFieldCell setEchosBullets
  • Next by Date: NSSearchField
  • Previous by thread: Re: Progress bar on front NSPanel is grey not blue??
  • Next by thread: Re: Progress bar on front NSPanel is grey not blue??
  • Index(es):
    • Date
    • Thread