Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Apple > Operating Systems

  • Print
  • + Share This
Like this article? We recommend

Testing and Packaging Your Widget

Dashcode includes a self-contained Dashboard runtime environment. When you’re ready to test your widget, all you need to do is click the Run button in the toolbar. The widget will behave exactly as if it were running inside Dashboard.

As in Xcode, you can set breakpoints from the Source Code pane simply by clicking on the appropriate line numbers to the left of the code. You can pause and stop the widget at any time using the buttons in the toolbar, and you can view a Run Log in place of the Canvas by selecting Run Log from the View menu.

There’s also a Code Evaluator available from the View menu that can be invaluable to new Dashcode developers.

Once you’ve created and successfully tested your widget, you’re ready to deploy it. Like Xcode, saving your work in Dashcode creates a project file.

Once your widget is complete, you need to select Deploy from the File menu to create the finished widget (or you can also use Deploy to Dashboard to create the widget and install it in one step). After that, you’re ready to share your widget with the world.

  • + Share This
  • 🔖 Save To Your Account