Use objective-C and cocoa on Windows

Source: Internet
Author: User

I recently developed the iPhone and used cocoa. I feel that the cocoa design is exquisite and the objecitive-C syntax is very simple and easy to use. Therefore, I want to check whether there is a runtime environment in windows, this makes it easy to use. Otherwise, it will only be used on Mac. It is troublesome to install virtual machines or purchase hardware. I searched for some information and found some tools in this regard.

Cross-platform cocoa

Http://stackoverflow.com/questions/2049099/cocoa-programming-on-windows

Gnustep

Http://www.gnustep.org/

The purpose of this project is to create a free and open version of the cocoa (formerly known as nextstep/openstep) APIs and tools for as your platforms as possible.

Gnustep provides a robust implementation of the appkit and foundation libraries as well as the development tools available on cocoa, including Gorm (the interfacebuilder) and projectcenter (projectbuilder/xcode ). gnustep currently supports Unix (GNU/Linux and GNU/Hurd, Solaris, NetBSD, OpenBSD, FreeBSD, Darwin) and Windows.

It can be seen that this open-source project has constructed a series of tools with xcode interfacebuilder and objective-C cocoa runtime environments.

Http://www.nongnu.org/gstutorial/zh_tw/index.htmlgnustepchinese document and reference

Http://ftp.gnustep.org/pub/gnustep/binaries/windows/ this can download the Windows version of each execution File

Cocotron

Http://www.cocotron.org/

The objective of the cocotron project is to implement a cross-platform objective-c api similar to Apple cocoa. Including appkit, foundation, and objective-C Runtime libraries and other function libraries, such as CoreGraphics and corefoundation.

Http://www.cocoachina.com/ B? P = 144

Compared with gnustep, cocotron can be used as a whole environment experience and learning for development.

Install and use gnusetp

Http://ftp.gnustep.org/pub/gnustep/binaries/windows/ in this path can download the Windows execution file, the upper directory can see the various versionsCodeAnd documentation

Install the latest version

Http://www.gnustep.org/experience/Windows.html

Objective-CAnd cocoaFramework compilation environment

Gnustep-msys-system-0.25.1-setup.exe

Gnustep-core-0.25.0-setup.exe

Gnustep-devel-1.1.1-setup.exe

Gnustep-cairo-0.22.1-setup.exe

Similar to interface BuilderInterface Design Tools

Gorm-1.2.12-setup.exe

Example Tool

Gnustep-examples-1.3.0.tar.gz

Gworkspace-0.8.8.tar.gz

ProjectCenter-0.6.0.tar.gz

SystemPreferences-1.1.0-1-setup.exe

In the previous version of projectcenter, You need to compile and use it by yourself. [relevant documentation in the Code]

Http://www.jaysonjc.com/programming/objective-c-programming-in-windows-gnustep-projectcenter.html

Is a function description that uses an existing version, use the following:

Gnustep-system-0.22.0-setup.exe

Gnustep-core-0.22.0-setup.exe

Gnustep-devel-1.0.0-setup.exe

Gorm-1.2.8-setup.exe

ProjectCenter-0.5.0-setup.exe

Install the project tool and interface tool in the compiling environment in the above sequence.

[After installing the project (windows7 64) on my machine, the system prompts that the make file cannot be found, but no good solution is found. If you have time, you can check the project center code, if you have projectcenter, familiarize yourself with the project organization. You can use the make command to compile the project by yourself.]

Http://www.gnustep.org/experience/PierresDevTutorial/index.html

This address describes how to create a project and interface for Project Center gorm.

InstalledProgramGroup menu, shell can start the mingw shell environment, at this time you can use GCC g ++ make and other tools, for Linux and other familiar with this very clear

Gorm projectcenter is the startup command

 

Shell window: You can compile projects and perform other operations.

 

Gorm window: Design Interface and component Layout

 

Project center window: Project Creation, code highlighting

Summary

Gnustep can use objective-C and cocoa. Note that the implementation of cocoa is different from that of Apple's official cocoa.

This tool implements appkit, which is not implemented for iOS's uikit.

however, as long as you are familiar with this, it is easy to develop iPhone/iPad and Mac.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.