BTY, is there a similar dictionary item for mass storage accesses? i.e. how long since the last time a file system read or write took place.

+++++++++++++++++++++++
Rich Collyer - Senior Software Engineer
+++++++++++++++++++++++




On Mar 5, 2009, at 11:13 AM, Rich Collyer wrote:

I appreciate the importance of NOT using undocumented APIs and the IOKit option listed below works great.

Thank you,

+++++++++++++++++++++++
Rich Collyer - Senior Software Engineer
+++++++++++++++++++++++




On Mar 5, 2009, at 10:23 AM, Michael Ash wrote:

On Thu, Mar 5, 2009 at 11:58 AM, m <mlist0...@gmail.com> wrote:
For the archives, the blog Torsten linked to had this bit of code:

double CGSSecondsSinceLastInputEvent(long evType);
double idleTime = CGSSecondsSinceLastInputEvent(-1);

Might I humbly request that when feasible, actual answers be posted to the list, and not merely links to answers? One way folks use this list is by searching the archives. The archives are maintained for a long time, but links often go stale. Twice yesterday, I found links to answers but they
were dead.

Copyright issues make that less easy than it ought to be, and it's
mostly pointless, as archive.org will recover your old links in 99% of
the cases. A link to a long, detailed explanation is *vastly* better
than a quickie summary posted inline.

In any case, using the above private API is a bad idea. This post
shows a way that uses only public APIs

http://www.cocoabuilder.com/archive/message/cocoa/2004/10/27/120354

Mike
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/rcollyer%40ironkey.com

This email sent to rcoll...@ironkey.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/rcollyer %40ironkey.com

This email sent to rcoll...@ironkey.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to