From Aptana Development
Installation
- Launch the Aptana Start Page
- Download the Aptana plugin for Apple iPhone Support and install
- Ensure no dependency errors popup
- Restart the IDE
- Go to Window->Preferences->Aptana->Editors->HTML->Preview
- Ensure the iPhone preview browser is added and selected
Project Creation
- Go to Window->Preferences->Aptana->Editors->HTML->Preview
- Deselect the iPhone preview
- Select OK
- Create a new iPhone project
- Add MochiKit library
- Select Finish
- Ensure a dialog pops up notifying that the iPhone preview is not enabled and asking if it should be enabled
- Select Yes to enable it
- Ensure project created with iPhone icon
- Ensure following files exist in project:
- index.html
- iPhoneArrow.png
- iPhoneToolbar.png
- lib folder with MochiKit inside
- Ensure index.html is opened in the HTML editor with the iPhone Preview
- Click outside the browser
- Ensure the iPhone rotates when clicked
- Click the top phone toolbar (where the battery icon is)
- Ensure it expands and collapses the top of the browser
- Add the following content to the page
<a href="http://www.aptana.com">test</a>
- Go to the iPhone preview
- Select the new link
- Click the back button on the phone
- Ensure it goes back to the original page
- Click the forward button on the phone
- Ensure it goes forward to www.aptana.com
Runtime
- Select Run button
- Ensure iPhone Application Server dialog launches
- Ensure console created in Console view for <project name>
- Put server URL inside Firefox (with Firebug disabled) or iPhone itself
- Ensure logging message printed to console
- Type alert('test'); in Console View and hit enter
- Ensure Firefox displays alert
- Type window.location in Console View and hit enter
- Ensure URL of page is printed to console
- Stop application server
- Ensure console removed and no longer displayed
- Rename project and rerun *Next Release Only
- Ensure application launches still *Next Release Only
- Delete project *Next Release Only
- Ensure prompt is shown asking to delete iPhone configuration *Next Release Only
Samples View
- Preview iPhone EXT Accordion Sample
- Import EXT Accordion Sample
- Click run button and verify EXT Accordion Sample project launches
Links