New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Choosing a Language.


Post Reply New Thread Subscribe

 
Thread Tools
Kaurotu

 
Kaurotu's Avatar
 
Member Since: Apr 26, 2007
Location: Geneseo, IL
Posts: 36
Kaurotu is on a distinguished road
Mac Specs: Standard Black MacBook

Kaurotu is offline
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
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
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.
QUOTE Thanks
Kaurotu

 
Kaurotu's Avatar
 
Member Since: Apr 26, 2007
Location: Geneseo, IL
Posts: 36
Kaurotu is on a distinguished road
Mac Specs: Standard Black MacBook

Kaurotu is offline
Yeah I'll have to learn Objective-C I guess.

Quote:
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
QUOTE Thanks
xstep

 
xstep's Avatar
 
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
You might want to start with the Cocoadevcentral site and specifically this Learn C for Cocoa one.
QUOTE Thanks

Post Reply New Thread Subscribe


« apple script to greet me off stand by | Python Coolness »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Foreign Language Support in OS X ItinitI OS X - Operating System 0 08-21-2003 12:02 AM

All times are GMT -4. The time now is 09:25 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?