Objective - C

Jul 13, 2010 at 5:04pm
My primary goal is to work on macintosh and iphone application development. I currently know basic C++ and I was wondering if I should move to Objective - C.
Jul 13, 2010 at 5:17pm
You can try Objective-C++ if you want to use both
Jul 13, 2010 at 6:06pm
If you want to do cross platform development, you should know that Objective-C isn't very popular outside of MacOS.
Jul 13, 2010 at 6:29pm
closed account (z05DSL3A)
You can try Objective-C++ if you want to use both

Just to clarify:
"Apple’s Objective-C compiler allows you to freely mix C++ and Objective-C code in the same source file. This Objective-C/C++ language hybrid is called Objective-C++. With it you can make use of existing C++ libraries from your Objective-C applications."
Jul 13, 2010 at 7:37pm
Just to clarify:
"Apple’s Objective-C compiler allows you to freely mix C++ and Objective-C code in the same source file. This Objective-C/C++ language hybrid is called Objective-C++. With it you can make use of existing C++ libraries from your Objective-C applications."


So you could make an Objective - C program out of only C++?
Last edited on Jul 13, 2010 at 7:38pm
Jul 13, 2010 at 8:53pm
closed account (z05DSL3A)
No, you can mix Objective-C and C++ code. If you only use C++ then it is C++.

Jul 13, 2010 at 11:10pm
So you could make an Objective - C program out of only C++?

Objective-C supports objects by bolting on Smalltalk-like objects to the C language. It's a hybrid of the two languages, with C for procedural parts with Smalltalk-like object behaviour.

C++ extends C into a new language with static binding for objects.

The GNU Objective compiler doesn't just use C, someone thought it would be cool to allow C++ as it's no more complicated to implement (as they already had all the bits). So you can have this cool Objective-C++ thing.

But to answer the original question, you should learn Objective-C if you want to do any GUI work on those platforms.
Jul 14, 2010 at 2:22am
I was looking through the Xcode project files, and the Carbon C++ project allows you to use all of the Xcode tools, interface builder, etc. On the Apple Developer site it doesn't say anything about apps having to be programmed in Objective - C, so would this work for developing apps?
Jul 14, 2010 at 7:11am
i've always wanted to develop for the iphone but been limited by the "Mac only" lmits. still saving up to by 1 though.
Jul 14, 2010 at 7:16am
The preferred interface is Cocoa, which is Objective-C.
Jul 16, 2010 at 11:17pm
hey OP...and everyone else for that matter, have you guys not heard of dragonfiresdk? windows iphone sdk? you can go ahead and use C++ and your windows comp. been using it and have seen some fun apps on the app store created by it. just a thought. and just so happens you can win it this week on modmyi (they are giving away 2 copies). hey there is a dragonfiresdk giveaway this week at http://modmyi.com/forums/iphone-news/719292-dragonfiresdk-windows-iphone-sdk-giveaway.html

AND…they just added network functions. :) :) :)
Topic archived. No new replies allowed.