iPhone Development: Cocoa Touch & Open Touch

15
COCOA TOUCH AND OPEN TOUCH iPhone Development

Transcript of iPhone Development: Cocoa Touch & Open Touch

Page 1: iPhone Development: Cocoa Touch & Open Touch

COCOA TOUCH AND OPEN TOUCH

iPhone Development

Page 2: iPhone Development: Cocoa Touch & Open Touch

Cocoa Touch Open Touch

Free to registered developers Closed Source Runs Exclusively on Mac OS X

Leopard Officially Supported Development

Framework Available through the developer

program at: http://developer.apple.com/iphone

Free Open source Runs on Windows, Linux, and OSX Unofficial and requires the iPhone

to be "Jailbroken" Download and install instruction

can be found at: http://iphone-dev.googlecode.com

iPhone Development Options

Page 3: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDK - APIs

The iPhone has three layers of Mac OS X Core OS Core Services Media

Plus a new layer, called Cocoa Touch

Page 4: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDKCore Services Layer Highlights

Address BookFile AccessSQLiteCore LocationPreferences

Page 5: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDK Media Layer Highlights

Core Audio (same as OSX)Core AnimationIndustry Standard OpenAL SupportIndustry Standard OpenGL ES SupportAll hardware accelerated

Page 6: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDK Cocoa Touch Layer Highlights

Multi-Touch events and controlsAccelerometerWeb View - embeddable WebKit control

Page 7: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDKTools

Xcode now has iPhone supportDebugger supports on-device debuggingInterface BuilderInstruments - performance measurementsSimulator – runs your application locally on

an i386 version of the Aspen firmware

Page 8: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDKTools

Xcode Screenshots

Page 9: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDKTools

Xcode Organizer

Page 10: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDKTools

Xcode Build Window

Page 11: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDK

Xcode and the other tools provide all the same features you would expect of any Integrated development environment

The simulator allows you to immediately test and run most applications, with the notable exception of OpenGL ES code.

This means you are able to do development without an iPhone

Page 12: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDKAspen Simulator

Page 13: iPhone Development: Cocoa Touch & Open Touch

iPhone SDK - Acceptance

The acceptances appear to be random. At least some people who could be considered relative programming novices have been accepted, while some large companies have not.

The program is firewalled. Unless you are authorized, you will not get access to Apple's documentation and support site.

Five iPhone limit. You may develop for up to five iPhones and that's it.

Test devices are just that. Adding the pre-release iPhone OS to your iPhone seems to kill actual phone functionality.

Page 14: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDK - App StoreYou must be accepted as a registered developerApple takes 30%, pays rest monthly - free apps are free“Exclusive" official way to deploy apps to usersSupports automatic updates of your application

Page 15: iPhone Development: Cocoa Touch & Open Touch

The iPhone SDK

All the new iPhone firmware features will be available in June. To get any of them earlier, you must be accepted to the Developer program