Home | Uploading | Viewing Data | Search | Making Public | Lists | Sample Attributes | Chemical Analysis Attributes | Image Attributes | XML Output |  To MetPetDB

IPhone Application Project Setup

These instructions assume MetPetDB subversion is setup in xcode. In the scm tab in xcode, choose the repositories option. Click on the MetPetDB subversion under repositories and navigate the trunk directory and then to the iPhone directory. Check out the mpdb-iphone1.1 directory (within the IPhone directory) to your local computer. If the files in the classes folder, the IB Files folder, or an other folder appear red, the paths are incorrect and must be changed. If they are black, they are fine and the project can be run how it is.

The steps to change these paths (ONLY IF THE FILES NAMES APPEAR RED) are as follows:

1. Click the "Project" menu tab and select "Edit Project Settings" Choose the general tab from the options at the top. In the "Place Build Products In:" section, make sure the "Custon Location" radio button is selected and then choose the folder that your project is in. It should end with "/build".

2. If the files in the "Classes" folder or any other folder appear in red, xcode cannot find these files and the paths must be changed. To do this, begin with the "Classes" folder. Select all the files in the folder, right click, and select "get info". Click the Choose button in the upper right hand corner and navigate to the classes folder on your hard drive that all the files are in. The Application Controllers, CoreLocation? Delegate, and Other Sources folders all have files that are contained in the mpdb-iphone folder (parent folder of the classes folder.) Choose all the files in these folders, right click, and select the get info option. Click the choose button again and this time navigate to the proper folder which should be the parent folder of the "classes" folder that was previously selected. For the "Resources" folder, if the files appear red, the paths for these files also need to be changed. In your local project folder, all .xib files should be in the "IB Files" folder. Select all the .xib files in this folder and change the path using the steps used for the other files to select the correct paths.

Changing the Sample Pagination Number on the server

Steps to change the maximum number of samples that should be paginated through: The max results of the pagination parameter must be changed. Navigate to mpdb-server -> src -> edu.metpetdb.server.search In the file SearchIPhonePost.java on line 232(this will obviously change if the file is edited) change p.setMaxResults(10) to the desired number. This number can also be changed for http Get requests by changing line 98 of the file SearchIPhone1_1.java and line 97 of SearchIPhone.java.