How to Start Learning Objective C on Windows

How to Start Learning Objective C on Windows thumbnail
Objective C is an object-oriented programming language that relies on a class structure.

Objective C is an extension of the C programming language specific to the Mac OS family of operating systems. Developers use Objective C to develop apps for Macs, the iPhone and iPod Touch. However, many programmers might like some flexibility in their development environment. Perhaps you are a Windows user, for example, who would like to develop apps for the iPhone. Download the proper programming environment and learn Objective C on your nonMac system.

Instructions

    • 1

      Download the GNUStep environment from gnustep.org. The GNUStep project contains the code and Application Programming Interfaces commonly referred to as the Cocoa environment. You must use this environment to run Objective C code on a Windows computer. Follow the Windows download link, and make sure to download and install the "MSYS system," "Core" and "Devel" binary packages.

    • 2

      Write a basic Objective C program. Open Notepad or the code editor or your choice. Enter the following example code, which represents a typical "hello world" script. Save the file as "hello.m" in the C:\ directory of your PC.

      #import <stdio.h>

      int main(int argc, const char *argv[]){

      printf("Hello World!\n");
      return 0;
      }

    • 3

      Compile and run the code in GNUStep. Open the GNUStep shell from "Start | Programs | GNUStep| Shell." The shell appears in a terminal with a command prompt. Enter the command "cd C:\" to navigate to your computer's main directory. The "hello.m" file should reside at this location. In the GNUStep shell, enter the following command to compile an output file from the source code:

      g++ hello.m

      Finally, execute the output file by entering the command "a.exe" into the GNUStep shell. The terminal should display the message "Hello World!"

    • 4

      Learn the fundamentals of the C language and object-oriented programming, including concepts such as objects, methods, scope, classes and instantiation. These are essential to acquiring a solid grasp of Objective C.

    • 5

      Learn the distinctive features of Objective C. A thorough Objective C tutorial exists at Cocoa Dev Central, and there are many other Objective C tutorials on the Internet.

Tips & Warnings

  • With the GNUStep environment installed, you can use the environment to write and learn Objective C code. Otherwise, you cannot compile or run code written in Objective C on a Windows system.

Related Searches:

References

Resources

  • Photo Credit Jupiterimages/Goodshoot/Getty Images

Comments

You May Also Like

  • How to Override a Password on Windows XP

    The Windows XP operating system gives users the ability to create their own accounts on a computer. The operating system allows for...

  • Car Wash Objective

    The major objective of a car wash is to clean the outside of a vehicle of all dirt, bugs, debris and grime....

  • What Is Microsoft Visual C++?

    C++ emerged in the 1980s as an object-oriented extension of the C programming language. Object orientation made code easier to reuse and...

  • How to Enable Java in Windows Vista

    Java is a programming language used by many websites, cell phones and portable media devices. It allows you to play games, chat,...

  • How to Write Nursing Course Objectives

    Writing the objectives for your nursing course is a very important task because it communicates essential information to your students on how...

  • Education Goals & Objectives

    For children in elementary school, the goal is to learn on a basic level the knowledge they will use every day of...

  • Mobile Development Tools

    Mobile Development Tools. With the recent surge in popularity of smartphones, such as Apple's iPhone and Motorola's Droid, comes the need for...

  • Tools for Client Server Development

    Tools for Client Server Development. Choosing client server development tools can be a complicated issue, involving factors such as the intended audience...

Related Ads

Featured