This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why Objective C

 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Authors,

I had worked on C, C++ Programming Languages. However the term 'Objective C' is totally new to me.

It looks like a combination of both C and C++. Is that right?

I have a couple of other questions.

1. What exactly is Objective C? Where does it fit in the Software programming arena?

2. Why one should go for Objective C?

3. Is it targeted to run on a specific environment like Mac OS?

4. As a matter of fact, there would be few pros and cons for any programming language and Memory Management comes in top of the list. How does Objective C address that aspect?

Thanks in advance!!

Cheers,
Raghavan alias Saravanan M
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raghavan Muthu wrote: It looks like a combination of both C and C++. Is that right?

Not really. C++ was one direction taken to create an OO "version" of C, Objective-C is another.

1. What exactly is Objective C? Where does it fit in the Software programming arena?

As far as I can see, Objective-C is primarily used for creating native programs for OS X and iOS. This is because of the DNA brought to OS X from Next.

2. Why one should go for Objective C?

"go for"? Do you mean "why would one use it?". If so, because you want to create programs for the Mac (OS X) or for the iOS devices.

3. Is it targeted to run on a specific environment like Mac OS?

As said, its primary environments are OS X and iOS, but I do not believe that it is limited to those platforms.
 
Johannes Fahrenkrug
author
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raghavan,

Wikipedia actually gives you a pretty good rundown on what Obj-C is: http://en.wikipedia.org/wiki/Objective-C

About memory management: On Mac OS, Obj-C has an (optional) garbage collector. iOS does not have a garbage collector, but something better is coming in iOS 5: ARC. ARC will automatically put instructions for retaining and releasing memory into your program when you compile it. So from a developer's perspective it's like garbage collection just with the big advantage that there's actually no garbage collector at runtime.

- Johannes
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean iOS 5
 
Johannes Fahrenkrug
author
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haha, thanks, John, I fixed it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic