aspose file tools*
The moose likes iOS and the fly likes Why Objective C Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » iOS
Bookmark "Why Objective C" Watch "Why Objective C" New topic
Author

Why Objective C

Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

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


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61609
    
  67

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Johannes Fahrenkrug
author
Greenhorn

Joined: Mar 07, 2007
Posts: 22
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

Joined: Nov 08, 2003
Posts: 3479

You mean iOS 5
Johannes Fahrenkrug
author
Greenhorn

Joined: Mar 07, 2007
Posts: 22
Haha, thanks, John, I fixed it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why Objective C