Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Update Weather widget in the background' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Update Weather widget in the background
Authored by: anamexis on May 16, '05 12:29:55PM
It's important to know that the
onshow()
and
onhide()
functions present in every widget are there so that the widget uses zero CPU when Dashboard is not active. So beware that your widget may start using up your precious CPU cycles at random times.

On the flip side, onshow() might be used as the only event to fetch new information from the internet, without it, the widget may not update at all. I don't want to delve into the Javascript, but just be watchful of this hint.

[ Reply to This | # ]