Datasheet

28
Part I: Introducing Dashcode and How You Can Use It
The settings for the mobile Safari version are shown in Figure 1-22. The feed
and the options (number of stories, for example) are the same settings as
they were for a regular Safari Web app. You don’t have to enter them again;
they’re the same values.
In Figure 1-23, you do see some additional settings that apply only to mobile
devices, such as iPhone. For example, you see the viewport settings, which
handle rotation of the device between horizontal and vertical orientations.
The issue of rotation applies only to mobile devices because rotating a desk-
top computer and its display from horizontal to vertical isn’t a supported or
recommended behavior.
In the Dashcode templates, you typically provide only the bare essentials, such
as the URL of an RSS feed. The templates provide the code to implement the
functionality appropriate for whatever your product will run on: Dashboard,
Safari, or mobile Safari. (Not all versions are supported for all templates.)
Figure 1-21:
Drill down to
an article on
iPhone.
05_9780470884737-ch01.indd 2805_9780470884737-ch01.indd 28 11/23/10 6:59 PM11/23/10 6:59 PM