do periodic NSTask yet allow sleep?
do periodic NSTask yet allow sleep?
- Subject: do periodic NSTask yet allow sleep?
- From: matt neuburg <email@hidden>
- Date: Sat, 29 Nov 2003 13:26:34 -0800
My app (MemoryStick) is a front end for vm_stat, which it calls
periodically by way of an NSTask. But this prevents the computer
from sleeping. (I think this because NSTask hits the hard disk
each time it calls vm_stat.) What can I do about this? Is there a
notification that tells me "the computer would really like to go
to sleep now if only you'd stop hitting the hard disk?" Even
better, is there some way I can incorporate vm_stat into my own
code or otherwise make it be that case that I don't have to hit
the hard disk at all once I've (somehow) "loaded" vm_stat? m.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.