Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 9, 2009, 01:54 PM   #1
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Beginning iPhone development...How?

A phone call was the reason for me wanting to start programming for the iPhone.

This is my background:
-- Much experience in C++ development.
-- Professional skills in Objective-C with Cocoa on OS X.
-- Some skills in OpenGL (the last thing I made was a .obj parser and modeler)

This is what I was requested:

That guy was looking for a programmer for iPhone. He told me that he wanted to make a 2D game for iPhone. He said that the game would be fairly simple, and just wanted someone to know how to program Cocoa for iPhone.

So, my problem is that I don't know what are the differences between iPhone and OS X in terms of application development. Even worse, I don't have an iPhone (although I know someone who does)!

My questions are:
-- Does Xcode provide a way to build applications for iPhone without having one?
-- Are there major differences between iPhone and OS X in terms of development?
-- Is there any way I will be able to do it even by reading a book?

EDIT
Soulstorm is offline   0 Reply With Quote
Old Jan 9, 2009, 02:02 PM   #2
zmttoxics
macrumors 65816
 
zmttoxics's Avatar
 
Join Date: May 2008
Register an iPhone adc account and download the iPhone 2.2 sdk. Xcode 3.1.2 integrates with the sdk now (you can set the project to use the sdk etc). Then start reading.
__________________
iMac 20" 2.66 C2D|9400M|4GB RAM|320GB HD ;; MacBook Pro 15" 2.4 Ci5|GT330M|4GB RAM|320GB HD
HP w2558hc 25.5" - not quite an ACD, but damn awesome.
zmttoxics is offline   0 Reply With Quote
Old Jan 9, 2009, 02:25 PM   #3
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by Soulstorm View Post
My questions are:
-- Does Xcode provide a way to build applications for iPhone without having one?
-- Are there major differences between iPhone and OS X in terms of development?
-- Is there any way I will be able to do it even by reading a book?
-- Yes. There is an iPhone Simulator. But, to be honest, it's always good to perform testing on a real device as well.
-- Yes. Limited screen real-estate and memory being a couple of differences. But the basics are similar.
-- Yes. If you're industrious, you may not even need a book. There are plenty of tutorials and sample apps to get you started.
dejo is online now   0 Reply With Quote
Old Jan 9, 2009, 02:25 PM   #4
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
Quote:
Originally Posted by Soulstorm View Post
My questions are:
-- Does Xcode provide a way to build applications for iPhone without having one?
-- Are there major differences between iPhone and OS X in terms of development?
-- Is there any way I will be able to do it even by reading a book?
You can develop applications using only the iPhone SDK (XCode), without an iPhone or iPod Touch. However, if your application is at all performance critical in any way, note that the SDK Simulator can run up to 100X faster than a real iPhone, so you will have no idea if performance will blow up until you test on an actual device. Lots of animated 2D graphics can easily hit performance limitations.

The iPhone uses UIKit within a single fixed window instead of AppKit on a multi-window desktop, but the Cocoa concepts are similar.

There's tons of documentation on Apple's site, including some WWDC videos on UIKit for AppKit developers, targeted directly at a Mac developer such as yourself. None of the current iPhone development books are suitable for an experienced Mac/Cocoa/Obj-C developer IMO, unless you need a few tips and tricks that just happen to be included in the example code.

A current and experienced Mac Cocoa/Obj-C programmer should be able to pick up the API differences in a couple weeks. Learning the UI and performance tuning tricks, if needed, might take longer.


.
__________________
Apple II+, Mac 128k->512ke, MacBook Air 11, iPhone 6

Last edited by firewood; Jan 9, 2009 at 07:00 PM.
firewood is online now   0 Reply With Quote
Old Jan 9, 2009, 02:34 PM   #5
JLatte
macrumors 6502
 
Join Date: Dec 2005
Location: San Diego
Quote:
Originally Posted by Soulstorm View Post
A phone call was the reason for me wanting to start programming for the iPhone.

This is my background:
-- Much experience in C++ development.
-- Professional skills in Objective-C with Cocoa on OS X.
-- Some skills in OpenGL (the last thing I made was a .obj parser and modeler)

This is what I was requested:

That guy was looking for a programmer for iPhone. He told me that he wanted to make a 2D game for iPhone. He said that the game would be fairly simple, and just wanted someone to know how to program Cocoa for iPhone.

So, my problem is that I don't know what are the differences between iPhone and OS X in terms of application development. Even worse, I don't have an iPhone (although I know someone who does)!

My questions are:
-- Does Xcode provide a way to build applications for iPhone without having one?
-- Are there major differences between iPhone and OS X in terms of development?
-- Is there any way I will be able to do it even by reading a book?

EDIT
You should be much better off than someone that just knows C++/Java or nothing at all, because you've done objective-C professionally. I do C++ / C# / Java and I'm still jumping through hurdles trying to wrap my brain around particular objective-c concepts and syntax.

One thing to keep in mind about the simulator, by the way: The simulator is based off of your computer's processor speed and not the actual iPhone's processor speeds, so if you make a game, and it runs amazingly smooth on the simulator but not on an iPhone, well just take that into account.

I actually had very good success in understanding a lot of gray areas by skimming through Stanford's iPhone lecture slides. Stanford offered a course in iPhone programming, and someone posted the powerpoint slides to about 12 lectures or so online, all free. Do a google search for it, should be able to find them. Really great wealth of information. You could easily skip the first few lectures on objective-c, and just focus on building the apps. You could also get by reading the apple iphone documentation.
JLatte is offline   0 Reply With Quote
Old Jan 9, 2009, 03:16 PM   #6
sanPietro98
macrumors 6502a
 
sanPietro98's Avatar
 
Join Date: May 2008
Location: 28.416834,-81.581214
If you don't have an iPhone and you don't want to pay for the monthly AT&T voice/data fees, you can buy an iPod Touch. Its not cheap, but it is cheaper than an iPhone and has no monthly bills.
__________________
"The more you like yourself, the less you are like anyone else, which makes you unique." -Walt Disney

Last edited by sanPietro98; Jan 9, 2009 at 03:40 PM.
sanPietro98 is offline   0 Reply With Quote
Old Jan 9, 2009, 07:20 PM   #7
Soulstorm
Thread Starter
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Thank you all for your answers. Another questions. What APIs are available on the iPhone for graphics development? Is there OpenGL? Am I stuck with it or I can add 3rd party frameworks such as SDL?
Soulstorm is offline   0 Reply With Quote
Old Jan 9, 2009, 08:24 PM   #8
liptonlover
macrumors 6502a
 
Join Date: Mar 2008
I'm no professional but my transition from desktop to iphone coding so far has been pretty seamless. The biggest meaningful difference was different classes to get used to. I explored the new classes as I went along, and found out what I could and couldn't do. Apple did a great job making it as close to mac desktop development as possible.
__________________
Failure is not an option. It comes bundled with Windows.
Writing portfolio
liptonlover is offline   0 Reply With Quote
Old Jan 15, 2009, 04:33 PM   #9
Soulstorm
Thread Starter
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Please delete this reply

Last edited by Soulstorm; Jan 15, 2009 at 05:03 PM. Reason: wrong post
Soulstorm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Beginning transition from SGS@ to iPhone 5c. Toltepeceno iPhone 10 Mar 6, 2014 03:21 PM
Walmart to Sell iPhone 5c for $27, iPhone 5s for $127 Beginning Friday MacRumors iOS Blog Discussion 49 Dec 17, 2013 05:20 PM
20k Budget - Beginning Development For iOS? It Is James iPhone/iPad Programming 30 Jul 22, 2013 07:19 AM
Walmart to Discount iPhone 5 By $60 Beginning Saturday MacRumors iOS Blog Discussion 78 Jun 28, 2013 08:34 PM
Best Buy to Discount iPhone by $50 Beginning Sunday MacRumors iOS Blog Discussion 22 May 27, 2013 10:29 AM

Forum Jump

All times are GMT -5. The time now is 11:47 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC