Trying to figure out how iPhone SDK works