TimesToCome Mobile

Tips, tricks, tools, and help for the iPhone, Palm and Windows Mobile phone user

TimesToCome Mobile header image 1

Entries Tagged as 'programming'

Getting started and Resources for started writing iPhone programs

August 27th, 2008 · No Comments

It has been painful learning to write programs for the iPhone. My C++ is shamefully rusty and I’ve done everything from a command line for years. So I have to learn ObjC and how to develop code in XCode.

The first thing you must do is sign up for the iPhone Developer Program. There is a free program that will get you the developer kit, manuals, and source code. Pay $99 and you can get the certificates that will let you load code onto your phone for testing or put it up on the iTunes store.

Once you’ve signed up you’ll need to download and install the developer kit onto your computer.

If you plan to sell applications on the App store fill out your bank and tax information since it takes a long time for the contract information to get approved. ( iPhone Dev Center -> Program Portal -> Distribution -> App Store -> Learn more -> Go to iTunes Connect -> Contracts, Tax & Banking Information )

Then download all the sample code, you use it often.

(* Note: you must sign up for the developer program to download these manuals. )

The pdf manuals you’ll find most useful for getting started in ObjC and XCode are:
iPhone OS Programming Guide
ObjC

Then move onto both of these pdfs which walk you through simple projects:
ObjCTutorial.pdf
iPhone101.pdf

The icodeblog has several code examples and it walks you through in very tiny steps. I’ve found it to be a great help when I get stuck on something.

Another very useful blog with well explained examples and source code is MikeTeo.

iPhone Application Programming ( Stanford online course

I have ‘Programming in Objective-C (Developer’s Library)‘, ‘Cocoa(R) Programming for Mac(R) OS X (3rd Edition)‘ and ‘iPhone Open Application Development: Write Native Objective-C Applications for the iPhone‘.

‘Programming in ObjC’ is a great place to start if you are new to ObjC. ‘Cocoa Programming for Mac’ is good for learning Cocoa if you know ObjC but it is all for desktop application, not iPhone applications.

The ‘iPhone Open Application Development’ book looks to have some interesting information, but I haven’t found it to be very useful yet. Several books are supposed to be released this fall, but that’s still many months off.

If you have written code for cell phones before you’ll find much of the interface stuff is familiar.  It’s just a matter of getting the hang of the Apple drag and drop GUI.

If you want to write games you’ll want to brush up on or learn OpenGL and get the basics of that down. For a really cool example of 3d graphics on the iPhone check out iHologram

With GPS, a large screen, and internet access there is so much this phone will be capable of doing. There are things we won’t be able to live with out a year from now that are just sparkles in coders brains at the moment. Don’t wait for next falls batch of books.

If you are totally new to programming you’ll want to download the free pdf or buy Thinking in C++: Introduction to Standard C++, Volume One (2nd Edition) and dig into code get your basic stuff down first.

Also see Miklos Fazekas’s Blog entry on Debugging iPhone provision profiles/certificates. It was a big help to me.

Tags: iPhone help · programming

iPhone SDK

March 6th, 2008 · No Comments

iPhone SDK can be downloaded from Apple now. There is a free version you can test and play with. It is $99 to become a registered developer and get a key so you can create applications people will be able to download from the iPhone application store beginning in June. For $299 you can obtain an enterprise license which allows you to develop in-house applications.

More details on the 30%Apple/70% developer split and tons of examples, demos, how tos etc are available on the Apple developer site.

Tags: programming

Google phone developer kit released for all platforms

December 17th, 2007 · 2 Comments

We are all looking forward to a hackable phone for which we can write applications. This toolkit allows you to write Java applications for the GPhone.

The Android Developer kit is available for Windows, Linux and OSX. There is also documentation and other useful things at that site.

There are many HTC phones rumored to be arriving with Android in 2008. HTC has really been doing a nice job in the smart phone market lately.

More information can be found at The Open Handset Alliance. There is also a very quiet beginning of a Forum on developing and using Android

And just to make things interesting Google is offering $10 million in prizes to developers

However many developers are reporting problems

It is strongly rumored that Android will be released Fall 2008 on an HTC handset.

Tags: programming