There's also the "w" command that you could run in an NSTask.
Dave
On Apr 22, 2009, at 1:21 AM, Uli Kusterer wrote:
On 22.04.2009, at 04:43, Trygve Inda wrote:
Is there also a way to determine some sort of overall system
activity?
There's Unix calls in the Kernel to do this, for instance
host_statistics() with the HOST_CPU_LOAD_INFO selector. They're a
little fiddly to use because everything you do in response to them
can change their value again, but you might find a heuristic that
works. We used them for some fun in one of our about screens, so I
can't tell you whether they're suitable for what you're doing, but
it looked OK.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com
This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]