Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HawkEye40

macrumors member
Original poster
Apr 8, 2008
70
0
Hi,

What's the programming language to learn to write iPhone Apps? I've heard words like Cocoa, XCode and Objective C thrown about, but am pretty clueless ;-)

Thanks for your help.
 
Well, you're kind of right with all three. Computer languages are funny things. It's not like learning Japanese and then Spanish. In this case, Objective-C is essentially Cocoa. And both are offshoots of C++ which was a revision of C and cousins to C# and...well you get the idea. As for xcode, that's an environment (software) that Apple includes to simplify the developer process. In the simplest terms it's an application used to organize and compile the code for your created applications.

You would do best learning C++ first, or at the least get a solid foundation in it. The transition to Objective-C will be simpler but you can start with Objective-C. The best book on the subject is by Aaron Hillegas. Google him and you'll find all kinds of great tutorials etc.

Applications for the iphone require a little more learning due to the multitouch and other aspects of the hardware, but Apple does a nice job on their website.

I'm just learning myself, and the learning curve is steep but after a point, it gets much easier. It's like chess. You may understand how pieces move, but you make tons of mistakes at first. Then one day, the light bulb goes off and you see the big picture.
 
This may sound stupid, but, is there any similarity at all between C++ and PHP ???

I know they are very different languages/platforms, but, I know PHP and MySQL and am wondering how difficult it might be to learn the languages need to write iPhone apps.
 
I'm not familiar with php or sql too much, but from what I've heard, knowledge of any language will put you at a big advantage when learning a new one. It might be frustrating at first since some syntax and vocabulary will conflict and be different, but, you'll pick up the differences and fill in the blanks that much quicker.

And just to clarify my previous post, since I just re-read it...Cocoa is technically not a language but the framework which incorporates the language. So I guess you could say that 0bj-C is the language employed by the framework Cocoa to develop programs using xcode to compile.

Yep, there you go.
 
Cool, so Objective C is the way to go! Cheers for your help man, that's really useful.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.