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: Fri, 14 Apr 2006 23:17:49 +0100
Sorry I take that back,
the window isn't staying ontop of all the other apps. It seems to be
working just as I expected. I don't know why but it seemed like it
was staying ontop of all the apps, before. I guess I did the test wrong.
The progress bar is still grey unfortunately!
On 14 Apr 2006, at 23:05, Theodore H. Smith wrote:
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
--
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