Re: Unjustified CPU load with a simple Document .app
Re: Unjustified CPU load with a simple Document .app
- Subject: Re: Unjustified CPU load with a simple Document .app
- From: Dave Camp <email@hidden>
- Date: Mon, 9 Jun 2003 09:12:21 -0700
I'm going to say it's the throbbing default button in your UI. I've
seen this in every app I've worked on. Set the button to not be default
and watch your CPU usage drop to zero.
Dave
On Friday, June 6, 2003, at 06:30 PM, ettore wrote:
Everything works except for one fact: when a document is open, and
SimpleTimer is the active application (i.e. its menus are visible on
the menubar at the top of the screen) I notice - with `top' from the
terminal - a big CPU load (20%-30%) related to SimpleTimer, even when
the NSTimer object is not allocated and the mouse is not moving. If I
close all the documents (not the app), or either click on some other
application, the SimpleTimer load drops to 0. I tried to remove the
NSTimer, the delegate method and the MutableDictionary from the class
with no effect. I know `top' is not reliable, but I can't understand
why my trivial application has a load of 30% while every other
application has a load of 0. BTW, my app is very similar (if not
identical) in the structure to Hillegaas' `RaiseMen.app' listed in
his book `Cocoa Programming with Mac OS X', but of course his
application doesn't have my issue.
---
Among the chief weapons of UNIX: Fear, surprise and ruthless
efficiency.
_______________________________________________
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.