• 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
NSProgressIndicator, Hiding and CPU Usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSProgressIndicator, Hiding and CPU Usage


  • Subject: NSProgressIndicator, Hiding and CPU Usage
  • From: Jamie Curmi <email@hidden>
  • Date: Thu, 21 Mar 2002 08:42:53 +1100

Hi All,

I have a main window which includes an NSProgressIndicator - updated every half hour to reflect the download usage from a local ISP. The application works fine, but it has a behaviour that seems a little odd and I'm hoping someone can help me.

The application also makes use of

[myMainWindow setHidesOnDeactivate:TRUE];

So that the application auto hides if another application is in the foreground (it's an option).

Anyway, I've found that CPU usage for the application is at around 15% if the window is hidden in this way, but if I hide the application from the menu or COMMAND-H, or minimise the window, CPU usage is at 0%.

Can anyone give me some idea why this is the case, and how I can stop it?

I do know that it is the NSProgressIndicator that causes the problem (probably because even though it is determinate, it still animates slightly with the blue slowly moving, so that is what is taking the CPU). If I take out the progress indicator, the app sits at 0% when hiding on deactivate.

Any help is appreciated.

Thanks.

Jamie
_______________________________________________
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.

  • Prev by Date: Re: 8-bit chars in @""
  • Next by Date: Re: Getting info from outside drawRect
  • Previous by thread: Re: OT (joke: was: NSWindowWillCloseNotification)
  • Next by thread: Re: NSProgressIndicator, Hiding and CPU Usage
  • Index(es):
    • Date
    • Thread