image
www.flickr.com
William C. Arter's photos More of William C. Arter's photos

start

March 3, 2009

Sketch 4, assignment + sample code @ 3:35 PM

The assignment for Monday is to build something with the iPhone simulator based on the code provided for you below.

This sketch is designed to get you comfortable looking at and editing objective-c code in the XCode environment, so your sketch should show that you've spent considerable time playing around with the code base, and have manipulated it in some distinguishable way.

I'll be in office hours on thursday, and I recommend if you are having troubles, come hang out.

The basic steps to get up and running in XCode are:

• Open XCode in Macintosh HD/Developer/Applications/XCode
• Alternatively, you can download and double click the "BallBounce.xcodeproj" file included below

I've tried to comment the code best I could. It's based on Keith Peters' Gravity Tutorial for iPhone, which is in 5 parts, which can be found here: [1] [2] [3] [4] [5]. Keith goes into quite a bit of detail about some of this stuff, and some of the later tutorials add some things like accelerometer control.

I've also added a bunch of little things to his code, which you can experiment with. Check the rather extensive README.rtf that you can view from within XCode after you open the project.

Download file


have fun!

February 2, 2009

Readings for 2/9 @ 8:25 AM

I'll also be sending out an email w/ attached pdf. The web readings are here.

• Dan Hill: "City as Platform" (link)
• Anne Galloway: "The Rise of the Sensor Citizen" (link)

Short Extra Credit (not really, just if you are interested):
• Guardian recap of Matt Jones' Good Ideas Salon (link)
• "How the city hurts your brain" (link)

January 30, 2009

New Location Example using home values @ 3:45 PM

Hey,

Here's a new file showing how to use a home values web service to build a little price thermometer. Basically, in the new sketch, we set a switch that makes the app react to either the temperature service, or a home values service, and then decides what to do with the returned values.


//set up the service type, either temperature or homevalues
String serviceType;
serviceType = "homevalues";

//use this new url to get either temp or home values
request = client.GET("/clients/405/services.php?service="+serviceType+"&lat=34.052187&lon=-118.243425");

in the libraryEvent method, we'll check to see which type of service we are using. If it's the homevalues service, we'll turn on the draw() animation loop using loop(); Otherwise, we'll just call redraw() to call the draw() function only once.


if(serviceType == "temperature") {
redraw(); //call the draw() function once
} else if(serviceType == "homevalues") {
//start animating again
loop();
}

Download file

com.mpp.player.PowerPlayerAppScreenSnapz001.jpg

January 26, 2009

This week's reading @10:00 PM

Last but not least, the reading for this week can be found here:

Re-Place-ing Space: The Roles of Place and Space in Collaborative Systems

iPhone version of the location/weather example @ 9:56 PM

Here's the iPhone version of the Location updating code we went through with mobile processing today.

Download file

If you understand what was going on with the mobile processing example below, you should be able to understand, at a basic level, what is happening here. I've tried to comment the code extensively, although for you iphone-dev newbies, some of the iphone syntax might be pretty odd. Let me know if you guys have problems with this.

Also: if you need a developer certificate for iPhone, please email me and I will add you to the list.

| all rights william carter |
| view cc license |