• 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: "Theodore H. Smith" <email@hidden>
  • Date: Fri, 14 Apr 2006 23:05:49 +0100


I tried your trick of doing it in awakeFromNib, AND I tried Keary Suska's suggestion of using an NSModalSession.


Neither of those fixed the blue problem!

Keary's worked however for the other problem I was having, which is that I wanted the window to stay ontop of the other windows from it's own app.

However it is a bit toooo aggressive in doing this. I just want it to stay ontop of windows from it's own app, not other apps.

Maybe this is a totally non-Mac thing? At least non OSX thing, I think it was possible in MacOS9.

On 13 Apr 2006, at 16:06, Mike Abdullah wrote:

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


-- http://elfdata.com/plugin/



_______________________________________________
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>)
 >Re: Progress bar on front NSPanel is grey not blue?? (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: CoreData faulting - does it rely on #self?
  • Next by Date: Re: CoreData faulting - does it rely on #self?
  • 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