What are you hoping to do with this? Is there a need for your widget
to update outside of the Dashboard environment?
On Jul 1, 2008, at 2:59 AM, Michael Kwasnicki wrote:
I bypassed this by having an function that is called by
setinterval( bla, timeInMilliseconds)
that funciton compares the current time against the last time it was
called.
If the difference is bigger than 30 seconds you can be very sure
that the mac has fallen asleep.
usually the time difference is only a couple milliseconds.
BUT.... there is one thing that remains unclear.
I believe that such a cyclic call of a funcion prevents a mac from
going to sleep by itself.
I was not able to verify that, yet.
Another thing that I did not verify is what it does when it wakes
up... wheter it catches up where it was or whether it calls the
function as many times as it would be when the mac was awake all the
time.
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden