• 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: NSProgressIndicator won't disappear!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSProgressIndicator won't disappear!


  • Subject: Re: NSProgressIndicator won't disappear!
  • From: Ricci Adams <email@hidden>
  • Date: Fri, 11 Apr 2003 17:31:47 -0500

I just wanted to post my rather dirty hack to get this to work. The following is the tabView:didSelectTabViewItem: method in my tab view's delegate. the "isPerformingTask" variables are booleans that tell whether or not a certain task is being performed.

Hope this helps somebody :) Thanks to everybody who helped me with this problem.
Ricci Adams
email@hidden

-(void) tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem {
// Note:
// There seems to be a program with NSTabView's and NSProgressIndicators
// If the progress indicator is set to spinning style, and set to disappear when
// stopped, sometimes it will not disappear correctly when inside a tabView
//
// The code below is a fix for this until Apple repairs the problem

if (![self isWatchListPerformingTask]) {
[oWatchListStatusSpinner startAnimation:self];
[oWatchListStatusSpinner stopAnimation:self];
}

if (![self isLatestSoftwarePerformingTask]) {
[oLatestSoftwareStatusSpinner startAnimation:self];
[oLatestSoftwareStatusSpinner stopAnimation:self];
}

if (![self isSearchResultsPerformingTask]) {
[oSearchResultsStatusSpinner startAnimation:self];
[oSearchResultsStatusSpinner stopAnimation:self];
}

if (![self isTopSoftwarePerformingTask]) {
[oTopSoftwareStatusSpinner startAnimation:self];
[oTopSoftwareStatusSpinner stopAnimation:self];
}

if (![self isInstalledSoftwarePerformingTask]) {
[oInstalledSoftwareStatusSpinner startAnimation:self];
[oInstalledSoftwareStatusSpinner stopAnimation:self];
}
}


On Friday, April 11, 2003, at 12:55 PM, prince wrote:


On Wednesday, April 9, 2003, at 03:25 PM, j o a r wrote:

On Wednesday, Apr 9, 2003, at 23:50 Europe/Stockholm, Ricci Adams wrote:

I'm using "new-style" nib files, and I checked and made sure that displayWhenStopped is properly set at NO.

In IB, or in code while the app is running?

I have the same problem, when my app is running.

When I'm done processing, I do:
myProgress.setIndeterminate(true);
myProgress.stopAnimation(this);
myProgress.setDisplayedWhenStopped(false);
myProgress.setNeedsDisplay(true);

To try to force it to disappear. I've tried a variety of combinations of this sequence. (myProgress starts intermediate, then goes to a progress bar style until the process is finished. Then I want it to disappear.)

The indicator is always visible during this opersation (but it is in a tab item). IF you click to another application and then back, or resize the window, it will then disappear-- but needsDisplay isn't causing it go away.

IS there some method to call to force the redraw other than needsDisplay? When the window redraws from other means, it does go away....

It is my experience that NSProgressIndicator doesn't like to be hidden while animating, but I don't have anything solid to back that statement. I don't know what advice to give - bug report? Try to reproduce the problem in a small sample project, and if you can, send it to Apple.

In my situation, its not being hidden, but it is also in a tabItem-- maybe that's the issue.

Jay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSProgressIndicator won't disappear! (From: prince <email@hidden>)

  • Prev by Date: Re: Newbie: NSString and debugging question
  • Next by Date: Re: NSMutableDictionary not sending release message to contained objects at dealloc time
  • Previous by thread: Re: NSProgressIndicator won't disappear!
  • Next by thread: Re: NSProgressIndicator won't disappear!
  • Index(es):
    • Date
    • Thread