Question by : How to program an IPhone?
I have an idea for a smart phone app and I started looking at what the different phones used for their coding language. It was all good at first, “C++, C, C++, Java…” And then come apple… I can’t seem to figure out how exactly this one works. I’m old it uses Objective-C, which I have never heard of. Then I found a few sources that say you can use C++ but they are very outnumbered by the ones that say only Objective-C. Also, everyone tells me I need a mac, what’s different about Objective-C that it needs to use a Mac? Also I read about the SDK and I’m not quite sure what it is though.
So in summary, my questions are:
A) What defines Objective-C from C?
B) Can I just use C++
C) Why do I need a Mac to use Objective-C?
D) What is SDK
E) Do I need SDK for IPhone programing?
Best answer:
Answer by Josh
Yes you do need a mac and a developers kit(SDK=software developer kit) that you have to request from apple in order to actually test your application on an iphone emulator. As far as I know it does require objective c programming and will not allow c++. The reason you need a mac as well for the objective c programming is that xcode that is exclusive to mac os is really the only thing that will compile objective c. You need objective c for an iphone because most of the UI is done using cocoa which is an API for objective c. The difference between objective c and c++ is they are essentially two different supersets of c. you could compile a c program in either an objective c or c++ compiler but you could not compile an objective c or c++ program in a c compiler. Objective c contains a light layer over c that simply adds object orientation over c. C++ implements object orientation a little differently and is easier because it requires fewer pointers to implement. c and objective c seem to use pointers for everything.
Give your answer to this question below!