Code2care : TechZone Apps & Tutorials

Learn Objective-C on Windows

If you want to learn Objective-C, the language for developing apps for Mac OS and iOS, but you don\'t have a Mac? Well, there is a out.You can install GCC (GNU Compiler Collection) Compiler for Windows which will let you execute your objective-C code. To get started quickly all you need to do is download Cygwin : a tools which provide a Linux look and feel environment for Windows and also includes the compiler for objective-C and libraries.

Steps to install Cygwin on Windows PC :

Step 1. Download Cygwin setup : 32-bit setup 64-bit setup

Step 2. Run Cygwin.exe,Click Next.
Running Objective-C on Windows - Image-1
Step 3.Select "Install from Internet",Click Next.

Running Objective-C on Windows - Image-2
Step 4.Choose root directory,Click Next.
Running Objective-C on Windows - Image-3
Step 5.Choose Package installation directory,Click Next.
Running Objective-C on Windows - Image-4
Step 6.Choose Direct Connection,Click Next.
Running Objective-C on Windows - Image-5
Step 7.Select any mirror site
Running Objective-C on Windows - Image-6
Step 8.Certain packages will be downloaded from the next,may take a min.
Running Objective-C on Windows - Image-7
Step 9. Expand Devel and select gcc-objc,gcc-objc++,gdb and make,Click Next
Running Objective-C on Windows - Image-8
Running Objective-C on Windows - Image-9
Running Objective-C on Windows - Image-10
Step 10.Click Next
Running Objective-C on Windows - Image-11
Step 11.This Step will take some time (needs patience here!)
Running Objective-C on Windows - Image-12
Step 12.That\'s it,now you would have "Cygwin Terminal" icon on your desktop. Lets try running an sample code to see if all is fine.You need to place your "hello world" program under the "home/User/" dir where Cygwin is been installed.

Step 13.Open Terminal and execute the program. (helloWorld.m)
/* Test program */

#include <stdio.h>  
int main(int argc, char *argv[])
 {
    printf("Hello World!!");
    return 0;  
}
Running Objective-C on Windows - Image-13
Note : You cannot execute Cocoa code using gcc compiler as it does not include the Apple Cocoa classes (API's).


Top


Posts related to objectiveC.


1. Learn Objective-C on Windows


Posts related to windows.


1. Go to Line Number option in Windows Notepad

2. Add Custom header and footer to Windows Notepad file

3. How to install Ubantu from USB Pendrive Stick

4. Bypass domain name for IIS site

5. Setting Java_Home Environment variable on Windows Operating System

6. Light-weight GIF Screen Capture application for Windows and Mac OS X systems

7. How to Rotate Android Emulator on Mac OSX Windows and Linux

8. Learn Objective-C on Windows


Posts related to gcc.


1. Learn Objective-C on Windows


Posts related to cygwin.


1. Learn Objective-C on Windows


Code2care : Lines of Code for Change
Code2care is an initiative to publish and share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities.





Android app on Google Play    








Popular tags
android
x 175
eclipse
x 29
notepadplusplus
x 20
macosx
x 14
sharepoint
x 14
html
x 14
mac
x 13
androidstudio
x 11




1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy


Code2care © 2012-17