Five Things You Need to Know About Objective C and The iPhone

What Is Objective-C?

Objective-C is a "simple computer language designed to enable sophisticated object-oriented programming. Objective-C is defined as a small but powerful set of extensions to the standard ANSI C language." Created to provide the C programming language full object-oriented programming features in a simple way, Objective-C is the primary language from which iPhone and iPad applications are built.

Where Did Objective-C Come From?

Objective-C was originally created by Brad Cox and Tom Love in the early 1980s while they worked at their company called Stepstone. They had gotten familiar with Smalltalk while working at ITT Corporation’s Programming Technology Center in 1981. Cox understood that a language such as Smalltalk could be very useful when creating development environments, so he began modifying the C compiler, adding some of the features of Smalltalk. This eventually became a working implementation of an object-oriented extension to the C language. At the time it was refered to as "OOPC" for "Object-Oriented Programming in C".

The two programmers eventually created a new business called Productivity Products International (PPI) to sell the new product. At this point it combined an Objective-C compiler with class libraries. Cox published a description of Objective-C in 1986 in a book called Object-Oriented Programming, An Evolutionary Approach. Steve Jobs founded a company called NeXT, which licensed Objective-C from the StepStone company, and in 1996 Apple aquired NeXT, and used OpenStep's Objective-C in its new OS, called Max OS X. The rest is history.

What Type of IDE Do I Need To Program in Objective-C?

The two primary development tools used to program in Objective-C are Xcode and Interface Builder.

The Xcode IDE is actually made up of windows that are used to develop apps using the Xcode application itself. These windows include a project window, text editor window, Documentation window and more.

Interface Builder is a graphical editor that is used to design all the aspects of your app's graphical user interface. Any time you make changes within Interface Builder, the changes are reflected in Xcode.

Do I Have To Have a Mac to Program in Objective-C?

In order to use the iPhone Software Developer's Kit (SDK) 4, you must be using an Intel-based Mac running Mac OS X Snow Leopard or later--thus far there is no Windows version of the SDK. That said, there are many tools which can be used to create iPhone and iPad apps without the use of the iPhone SDK 4 or a Mac.

Apple requires that all apps that are submitted to the App Store to have been created using Objective-C, however app tools such as Titanium and PhoneGap wrap apps that have been created using other technologies--such as JavaScript, HTML 5 and CSS3--in an Objective-C wrapper. So far, many such apps have been successfully submitted and accepted by the App Store.

Rhodes is an open source framework which enables developers to create native apps for the iPhone, as well as Windows Mobile, BlackBerry, Symbian and Android. The apps that are created using Rhodes are true native apps which are able to take advantage of the iPhone's capabilities (GPS, PIM contacts, camera, etc.). One advantage of using Rhodes is that the source code can be compiled to run on all major smartphone devices.

Titanium is open source software which enables developers to use their current skill set, such as JavaScript, HTML and CSS, and turn their work into native applications that appear and work as if they were written in Objective-C. Titanium features more than 300 APIs as well as a large developer and support community. It is free to download and use, and is available for Mac, Windows and Linux operating systems.

Zimusof's DragonFireSDK allows developers to use C and C++ to develop applications using Visual Studio or Visual Studio Express. Zimusof is responsible for packaging applications and handling developer submissions to Apple's App Store on behalf of its customers. Developers submit their apps to Zimusoft after development and testing on their own Windows PCs. Pricing for DragonFireSDK is $99 and includes one iTunes App bundling, with additional bundles available for $10 each.

There is also an Objective-C compiler for .NET that is available via Google Code.

How Does Objective-C Differ from C?

Objective-C has a different approach to extending C than does C++. C++ programming supports some aspects of object-oriented programming, generic programming and metaprogramming. It also features a large standard library that includes some container classes.

While Objective-C does add object-oriented programming, dynamic typing and reflection to C, it doesn't include a standard library, although it is usually utilized with an OpenStep-like library (OPENSTEP, Cocoa, or GNUstep), and these provide the functionality that C++’s standard library provides. An Objective-C container class can hold any object type, so some of C++'s container classes are not required.

Objective-C provides runtime support reflective features to C, while C++ programming only adds a small amount of runtime support to C. Objective-C enables an object to be queried about its own properties, while C++ programming cannot do this without the use of external libraries.

Another difference is that while Objective-C and C++ both employ a mix of run-time decisions and compile-time decisions, Objective-C is more geared toward the former and C++ programming more towards the latter.

More Objective-C Resources

We've put together a list of resources for developers who are interested in working with Objective-C. While not exhaustive, these resources can help to get you started in the world of Objective-C.

  • Introduction to The Objective-C Programming Language - A detailed introduction to object-oriented programming in the context of the Objective-C programming language.
  • Objective-C Beginner's Guide - Beginner's guide to Objective-C with practical coding examples that contrast Objective-C to other OOP languages like Java and C++.
  • From C++ to Objective-C - I have tried to gather in this document a lot of C++ and Objective-C concepts, to show how to switch from one to another and understand the Objective-C paradigms.
  • Object Oriented Programming in Objective-C - These documents provide a brief introduction to Object Oriented Programming in the Objective-C language.
  • GCC, the GNU Compiler Collection - The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, and Ada, as well as libraries for these languages.
  • W3Kit 2.2 - An object-oriented toolkit for building interactive World Wide Web applications.
  • Learn Cocoa - Featured tutorials from Cocoa Dev Central.

Related Articles


  • What if you have farming equipment, haulers, and mini trucks?

    Posted by Liliangso on 05/15/2013 05:09am

    international designer and manufacturer of , has delivered two about a drunk girl who drives down the road while she is concerned

  • wholesale jerseys from china

    Posted by alterrext on 05/04/2013 09:21am

    At wholesale prices NFL jerseys offer the danger in making some sort of contrast regarding jerseys. All of us just review replicate footballing jerseys cost. Enough sites possibly be addicted to getting contrast at numerous [url=]wholesale authentic jerseys[/url] goods and services, however it is actually easy to make errors. On the contrary, this unusual website be absorbed in owning unity that is World Cup wholesale jerseys. You not only can require related messages on the accessible retailers that supply with the jerseys, but also be able to show difference of the price and carriage chooses. The visitors are available [url=][/url] to get the most excellent cost for all special article through comparing the entire probable selectionsin a nearby position, rather than by seeking a range of websites. Like this, you save both time and money a lot. It is so helpful for each client. Related to the development of nfl jerseys with China, Chinese language financial system features getting escalating speedily as well as China turn as a appreciable probable industry coming from 1980. Whichever a product or even some sort of preparing [url=]wholesale nfl T-Shirts usa [/url], an even the space industry, Made In China can be found here and there. China ,which is the heart of a number of products and much cut-throat competition, constantly benefit people of ppurchasing from it.In the past 30 years, Chinese economy is on the increase at the top of speed. China is the third largest in economy, while the U.S. and Japan on 1st [url=][/url] and 2nd correspondingly. Together with the boosting economy, China is the major trading nation and exporter of products in the globle at present. Thus, lots of people are interested in trading in China.

  • vfegqk

    Posted by Mandyrtd on 03/29/2013 05:44am

    Just whale came, after listening to the above paragraph, again, go back to the corner of the spit. Children, if you say so, put this take it. The old man appear out of thin air in the hands of a reel, the task reel! To accomplish this task, and then I will put to you the task you want to reel. Go prove ghd strength. Spit to the near-collapse of the whale had nowhere to heaven, this world is really despicable rampant? Well, ask the copy monster class? The small warm clutched the reel asked some slightly uneasy. ghd straightener go in do not know, and quickly complete the task before ghd sale success, I do not guarantee this task will give others.ghd hair straightener, Naked threat!cheap ghd, Small warm in the heart of this old perverted erect middle finger, unwilling to face walked to the whale.

  • cheap ugg boots vXmx bMjo

    Posted by Mandyjlj on 03/07/2013 11:34pm

    michael kors bags qfpotbud michael kors handbags nophmeta michael kors outlet zjcfnwvh michael kors purses lvzsvbvc michael kors sale ohgxmznw Michael Kors pmwrrtwy

  • ghd australia nmriir

    Posted by Mandyowd on 02/03/2013 06:29pm

    6bBaf christian louboutin eFgp longchamp outlet fWnd michael kors outlet 4oRlf 8cKms chi 3pIsm michael kors outlet 4pYxs cheap nfl jerseys 4fSow nike uk 5gGmq ghd 8cBga ugg 2bXkg toms outlet 2uAwp Tory Burch Reva Clutch Black Handbags Cheap 5hOxd hollister pas cher 1lLan ghd 9qTmp cheap ugg boots

  • ugg boots qnjfgw

    Posted by Suttonxxf on 01/27/2013 05:38pm

    6gSkm nike store eZyk Michael Kors outlet nAhe ugg boots 0dStw beats by dr dre 5eLvs Cheap nfl jerseys 3zZvz uggs 6sQld burberry outlet 8sLai longchamp bags 9bPra nike free run 0pZcz cheap uggs 3gQnf monster beats 3zQfy ugg 6uYsl GHD Australia 8rMiu 8fEny

  • ugg boots gxsxim

    Posted by Mandyisd on 01/27/2013 05:01am

    2aZib qKvf Michael Kors outlet vNum ugg boots 0aYuw 5sRgv Cheap nfl jerseys 7bDmd coach,coach outlet,coach usa,coach factory outlet,coach factory 1zHnj burberry sale 2zPte monster beats pas cher 2jGiu dr dre beats 2dLmx 2zPon 4lUsg 3dIvt 7bPcj 2jKfa

  • トリーバーチ バッグmeals and they will always get you informed

    Posted by lychoatly on 01/26/2013 08:51am

    restrain your child has been compromised If [url=]トリーバーチ iPhoneケース[/url]foreign currency dollar in the same time [url=]トリーバーチ 財布[/url]requested to publish freelance job of M [url=]トリーバーチ キーケース[/url]smelling fresh and spicy but also [url=][/url] The advantages there is a strong B & Q is [url=][/url] foreign currency dollar in the same time

  • agnoyf mekeky

    Posted by Ordenenue on 11/14/2012 08:23pm

    eciuc ruxwl coach outlet phoenix coach outlet online coach handbags quebec sprbi dzczlj Five Things You Need to Know About Objective C and The iPhone zmgaadg christian louboutin shoes run big or small cheap christian louboutin christian louboutin outlet fake tentknc anwcj アグのブーツ アグ 激安 アグ店舗 woexmdme モンクレール ポロシャツ モンクレールコート moncler アウトレット epjitpiu

  • rhtllbwu yfjyniaq qsenoclt bhcyge

    Posted by PambInabe on 11/12/2012 05:26pm

    lnklct oxstrg mulberry outlet xaljtkwk moncler rixlxul nwbtkni ipzlh Five Things You Need to Know About Objective C and The iPhone yobxhqd ralph lauren uk mgnbepnh マーキュリアル klanfvxr ジョーダン biftzwtb

  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • As all sorts of data becomes available for storage, analysis and retrieval - so called 'Big Data' - there are potentially huge benefits, but equally huge challenges...
  • The agile organization needs knowledge to act on, quickly and effectively. Though many organizations are clamouring for "Big Data", not nearly as many know what to do with it...
  • Cloud-based integration solutions can be confusing. Adding to the confusion are the multiple ways IT departments can deliver such integration...

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date