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

kage207

macrumors 6502a
Original poster
Jul 23, 2008
971
56
Okay, so I'm looking to program for the iPhone SDK and I know you have had many questions like this so if you could help me out it'd be greatly appreciated. I know computer languages Java, C++, HTML and Visual Basic. I have programmed for Java for about a year or so, C++ I just started about a month but every single day for the month and it's similar to Java so far. I want to know that programming for the iPhone SDK is similar to these languages at all? And how is the CocoTouch implemented into the programming? Is there any screen shots that people can show? I want to teach myself this because I want to learn about programming for the Mac and for the iPhone because this is what I want to be when I get out of college. I'm a freshman right now so there isn't a rush but I want to start teaching myself so far.

Thanks.
 

kage207

macrumors 6502a
Original poster
Jul 23, 2008
971
56
Thanks a lot. I'll check it out. And would anyone like to say their experience from learning the new programming of the iPhone SDK from a different language. And I think that site needs to be in a sticky for new comers if it isn't already.
 

fenrus110

macrumors regular
Mar 24, 2008
142
0
If you have a strong grasp of programming concepts, especially OO, it should be learnable (but that goes to say about learning any programming language). Knowing how to hand code some graphics helps too, which you'll probably do when you learn Swing (I hate Swing btw).

I'm primarily a Java programmer, I wasn't exactly great at C/C++, but I at least had knowledge of things like memory allocation, pointers, header files, etc.

I have experience with Flex and .NET so that helped me with picking up the Interface Builder quickly.
 

plinden

macrumors 601
Apr 8, 2004
4,029
142
Objective-C is an extension of C, but many of the high level concepts are more similar to Java than C++ - for instance, no multiple inheritance, garbage collection, others that I can't remember offhand.
You can write C functions within Objective-C code.

The syntax is different from both C/C++ and Java,e.g.:
obj1.getObj2().getProperty() would be written as [obj1 [obj2 property]]
(Edit: reading this over I realize just how meager this was - just try it out - you'll see soon enough if you can do it)

I suggest going through a few tutorials and get an XCode 3 book, e.g. Aaron Hillegass's "Cocoa Programming for OS X"
 

springframework

macrumors member
Mar 31, 2008
59
0
you also have to be able to read the documentation and understand it.

from xcode u do something like help >> documentation and a search window with options pops up.

the documentation at the moment is somewhere between poor to acceptable. It does give u some info on what meathods the classes have. There are also tutorials that are accessable through this help>>documentation which work ~70% of the time. The tutorials are not all Iphone specific so beware of that.

The help >> documentation is my #1 help source.


also learn the xcode shortcuts.

out of all the languages you know, it will be the most similar to C++
 

kage207

macrumors 6502a
Original poster
Jul 23, 2008
971
56
Alright, thanks. I appreciate the input. I'm taking C++ right now but it's really easy and boring right now and I have taught myself some small C++ before the class as well. So, we'll see after I finish installing the iPhone SDK.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.