You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can You Just Study Objective-C and Create Apple Apps Without Studying C or C++?

Hi. I think Objective-C (and Google's Go) are trying to replace C and C++ but can you just study Objective-C and create complex Apple apps and not study any other app (except maybe Swift which is attempting to replace all programming languages it seems including python), would Objective-C be enough?


Thank you in advance.


God bless, Rev. 21:4

Posted on Jun 22, 2014 10:12 PM

Reply
2 replies

Jun 23, 2014 4:41 AM in response to Alvin777

Objective-C has been Apple's language of choice for quite a while now. The various frameworks are written in Objective-C, just about all of the documentation and sample code is written in Objective-C, and most applications are developed using Objective-C, so I think you will be safe using Objective-C.


Swift is a new (maybe easier) language that interfaces directly with the existing Objective-C libraries and Cocoa and Cocoa Touch frameworks, but many (probably all) Swift users are still going to need to know Objective-C. Ultimately it is all just a matter of preference and what your goals are.



MacBook Pro / OS X Mavericks (10.9.3) / Xcode 5.1.1 / RubyMotion FTW

Jun 23, 2014 4:42 AM in response to Alvin777

Both Objective-C and C++ are supersets of C.

All C code is legal Objective-C code and generally also legal C++ code.

Both Objective-C and C++ started out as extensions to C.

C++ added classes and templets while focusing on not losing performance.

Objective-C is basically C with some Smalltalk parts and focusing on runtime flexibility rather than performance.


To program Objective-C you will have to learn parts of C.

Some Objective-C books teach enough C to get started with Objective-C.


Swift is probably mostly intended as a replacement for Objective-C but may also reduce the need to drop down to pure C (or C++) when writing performance sensitive code.

Swift uses the same OS libraries as Objective-C so a understanding of Objective-C is useful to read code sample, Apple docs and to understand odd bugs.

Can You Just Study Objective-C and Create Apple Apps Without Studying C or C++?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.