Results 1 to 4 of 4
  1. #1
    Choosing a Language.
    Kaurotu's Avatar
    Member Since
    Apr 26, 2007
    Location
    Geneseo, IL
    Posts
    36
    Specs:
    Standard Black MacBook
    Choosing a Language.
    So now that I'm happy with my new Mac and have experience working on a Mac, I want to transfer my programming knowledge from Linux to Mac. Since I use the GCC on Linux, compiling simple terminal apps is no big deal at all. The biggest problem for me is choosing a solid language. I really want to use Cocoa with Xcode, but it seems to me that Cocoa developers love Objective-C. I used C++ on Linux and don't really want to learn C just to learn Objective-C. Actually, do I really have to?

    So, can I use C++ with Cocoa and Xcode? If so, how well does Cocoa and C++ work with each other? Also, if I do need to learn Objective-C, how does it compare to C++ in your experience?

    Thanks in advance.

    -Kaurotu

  2. #2
    Choosing a Language.
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    Quote Originally Posted by Kaurotu View Post
    I really want to use Cocoa with Xcode, but it seems to me that Cocoa developers love Objective-C. I used C++ on Linux and don't really want to learn C just to learn Objective-C.
    Uh? If you know C++ then you have already learned C.

    Many say Objective-C is a nicer and easier to understand extension to C then C++ is. My one experiment with C++ was a nightmare I don't wish to return to, but Objective-C made more sense to me. I had some C experience before trying either.

    I think to take advantage of the Apple frameworks, you'll mostly need to use Objective-C. There is suppose to be C++ integration of some sort, but I don't have any working knowledge about that.

    If you "really want to use Cocoa with Xcode" then pick up one of the highly recommended books and take a stab at it.

  3. #3
    Choosing a Language.
    Kaurotu's Avatar
    Member Since
    Apr 26, 2007
    Location
    Geneseo, IL
    Posts
    36
    Specs:
    Standard Black MacBook
    Yeah I'll have to learn Objective-C I guess.

    Uh? If you know C++ then you have already learned C.
    What I mean by "learning C" is not just syntax, but programming habits. I've heard numerous times that C teaches bad programming practice compared to OOP. But, if all I have to is learn some basic syntax rules, it's not that big of a deal. Especially since Objective-C is obviously object oriented.

    Thanks.
    -Kaurotu

  4. #4
    Choosing a Language.
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    You might want to start with the Cocoadevcentral site and specifically this Learn C for Cocoa one.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Choosing the right Mac
    By joshmilkins in forum Switcher Hangout
    Replies: 2
    Last Post: 03-01-2012, 06:42 PM
  2. Choosing between PC and Mac.
    By franciscog_chin in forum Apple Desktops
    Replies: 14
    Last Post: 03-12-2010, 10:33 PM
  3. Help choosing
    By 99TJ in forum Apple Notebooks
    Replies: 8
    Last Post: 07-23-2007, 06:31 PM
  4. Need help Choosing!
    By xRACExITSaRALLY in forum Apple Notebooks
    Replies: 4
    Last Post: 05-09-2007, 09:31 AM
  5. PC User Needs Help choosing...
    By MikeS in forum Apple Desktops
    Replies: 1
    Last Post: 05-23-2006, 10:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •