C++ --> Objective-C?

Discussion in 'iOS Programming' started by stylar, May 12, 2010.

  1. stylar macrumors member

    Joined:
    Apr 10, 2010
    #1
    I have a year of C++ under my belt. I'm going to read an intro to obj.c book in the next few days, and start programming for the iPhone.

    Just wondering (a) if my C++ background will make things easier (how much?) and (b) if I should focus/take note of anything because of it?
     
  2. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #2
    I tried starting with Obj-C, ended up taking a C++ class.. went back to Obj-C and found that it made much more sense. I think you'll be just fine.
     
  3. VanMac macrumors 6502a

    VanMac

    Joined:
    May 26, 2005
    Location:
    Rampaging Tokyo
    #3
    It should help some.

    I went from C to C++ to Java, and now also some Objective-C 2.0
    There are some weird syntax things you will need to get used to, but other then that it is pretty cool.
     
  4. TiberiusXavier macrumors member

    Joined:
    Apr 18, 2010
    Location:
    Chicago
    #4
    C++ and Obj-C have some common concepts, but the implementations differ in significant ways primarily in memory management and syntax.

    Think of Obj-C as C with message passing referenced-counted objects. The API documentation from XCode is thorough.

    Overall, the learning curve is not steep, but I found C++ a much easier language.
     

Share This Page