Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Development

Widget refresh on click of F4 button

Author Message
debendra



Joined: 16 Dec 2009
Posts: 1

Posted: Wed Dec 16, 2009 - 5:26 am    Post subject: Widget refresh on click of F4 button Reply with quote

I am working on macOS machines.I have developed a dashboard widget. On pressing the F4 button I can see my widget , but the data inside the widget doesn't get refreshed. For refreshing the widget(data) I have to explicitly give command+R. But my requirement is to refresh the widget ,whenever I see the widget on clicking F4 button.
Please provide solution for the same.
View user's profile Send private message Send e-mail Widgets
Hawkman



Joined: 12 Jun 2005
Posts: 28
Location: Derby, UK

Posted: Wed Dec 16, 2009 - 12:39 pm    Post subject: Reply with quote

Tie the refresh to widget.onshow. Modern versions of Dashcode already have a show() function defined, which is tied to that event.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group