• 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: Thu, 13 Apr 2006 16:06:54 +0100

Hmm, it has always worked fine for me.  I have:

@implementation ThreadedProgressIndicator

- (void)awakeFromNib
{
	[self setUsesThreadedAnimation: YES];
}

@end

That is just a simple subclass of NSProgressIndicator. And then in the main code:

[progressBar startAnimation: self];
[NSApp beginSheet: progressSheet
   modalForWindow: myWindow
	modalDelegate: self
   didEndSelector: nil
	    contextInfo: nil];

This has worked just fine for me. I wonder what's different about yours.

Mike.

On 13 Apr 2006, at 14:58PM, Theodore H. Smith wrote:


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:
40gmail.com


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Progress bar on front NSPanel is grey not blue??
      • From: "Theodore H. Smith" <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: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: kWSMethodInvocationResult question
  • Next by Date: Re: Progress bar on front NSPanel is grey not blue??
  • 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