Datasheet

Chapter 1: The iPhone and iPod touch Development Platform
11
Accessing Files on a Local Wi - Fi Network
Since iPhone and iPod touch do not allow you to access the local file system, you cannot place your
application directly onto the device itself. As a result, you need to access your Web application through
another computer. On a live application, you will obviously want to place your application on a publicly
accessible Web server. However, testing is another matter. If you have a Wi - Fi network at your office or
home, I recommend running a Web server on your main desktop computer to use as your test server
during deployment.
If you are running Mac OS X, you already have Apache Web server installed on your system. To enable
iPhone and iPod touch access, go to System Preferences
Sharing Services and turn the Personal Web
Sharing option on (see Figure 1 - 11 ). When this feature is enabled, the URL for the Web site is shown at
the bottom of the window. You ll use this base URL to access your Web files from iPhone or iPod touch.
URL for selected
web site
Figure 1-11: Turn on Personal Web Sharing.
c01.indd 11c01.indd 11 12/7/07 2:29:11 PM12/7/07 2:29:11 PM