Questions tagged [cocotron]

Cocotron is an open-source cross-compiler for Objective-C. Its goal is to help compile Obj-C source code and Apple frameworks on Windows 2000 - 7.

The purpose of Cocotron is to provide a cross-platform compiler for development. It provides source code level compatibility with some of Apple's .

Cocotron aims to allow developers to compile for any desktop platform. However, most of the project is focused on Microsoft (mainly versions 200 thru 7).

Cocotron is a collection of well known and popular open source tools, specifically , and , which are organized and patched to support the Cocotron project.

Cocotron is intended to be used from within Apple Inc.'s as a cross-compiler, and Cocotron itself is an Xcode project.

The Cocotron project page is available here.

18 questions
5
votes
1 answer

How can I set up a Windows build in Xcode with Cocotron?

I have Cocotron set up, I have compiled the Foundation for Windows, and I have set up a project that uses that Foundation. I can't compile the project for Windows though, nor have I been able to find a guide to do so. Does anybody have any ideas to…
El Hombre
  • 73
  • 7
4
votes
3 answers

How to run Objective-C binary on a web server?

Alright, I have a rather odd question here. I feel much more comfortable writing code in Objective-C over any other language. I recently had to do some server-side programming, which required me to learn PHP. It works, yeah, but for fun I want to…
sudo rm -rf
  • 29,408
  • 19
  • 102
  • 161
4
votes
2 answers

Saving a 32 bit RGBA buffer into a .png file (Cocoa OSX)

I need to save the contents of a pixel editor application into a .png file but I am having trouble finding the best way to accomplish this. The pixel data is stored in a 32 bit RGBA buffer. Can anyone suggest any good tools I could use to…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
3
votes
2 answers

Is Cocotron the result of reverse engineering?

Does it replicate the behaviour of the various libraries (so the calls are exactly the same) or just codes them from scratch using unique optimizations and new ways to do their stuff?
John Smith
  • 45
  • 3
3
votes
2 answers

Does Cocotron support Objective-C garbage collection?

I'm setting up Cocotron to cross-compile my Mac app into an EXE for Windows... One of the compiler args I had to take out to get it to build using the Cocotron Windows compiler was the flag that enabled Objective-C garbage collection in GCC. Will I…
Ben Englert
  • 583
  • 5
  • 17
2
votes
1 answer

Cocotron with pyobjc?

I'm in the planning stages of developing a cross platform (Mac & Windows) app. Performance is not an issue, and Python would be a good fit for the problem domain. I'm a Cocoa developer with pyojc experience. Cocotron looks appealing, but has anyone…
stdout
  • 1,761
  • 1
  • 18
  • 33
2
votes
2 answers

Trying to understand why Cocotron isn't creating Framework DLLs

I'm attempting to use Cocotron to build the Foundation framework. GCC 4.3.1 for Windows compiled fine, and it's creating valid Windows executable files, which I confirmed by making a "Hello, world" executable. So what I don't understand is why, with…
Charles Maria
  • 2,165
  • 15
  • 15
2
votes
1 answer

Getting a console or error log from a Cocotron app

Does anyone know how to get a console or error log in Cocotron? In XCode if you go to preferences and under debugging you can select start console on startup but when you run the cocotron outside of XCode (in windows) no console pops up. I would…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
2
votes
1 answer

Generating an EXE with Cocotron

After hunting far and wide for a tool that would compile my Obj-C OS X app on Windows, I finally found cocotron. This allows me to (after a complicated installation and setup) add a few build settings and rules to my duplicated (for Windows) Xcode…
Sam Spencer
  • 8,492
  • 12
  • 76
  • 133
1
vote
1 answer

Foundation.h on Windows

I know these questions have been asked before but everything suggest using GNUStep. Is there a way to use Foundation without GNUStep? This is also a learning question for me (like if it's possible to do by linking files or something) I have Cygwin…
Senica Gonzalez
  • 7,996
  • 16
  • 66
  • 108
1
vote
2 answers

Link error with Cocotron

I've recently built a linux platform interface for Cocotron, and was able to build the Foundation framework with no errors. However, when linking my objective-C project, I get a linker…
Jason Sundram
  • 12,225
  • 19
  • 71
  • 86
1
vote
3 answers

Feasible to switch to objective-c on these platforms and situation?

I've written most of a game engine using C++ that runs on OSX and iOS (Xcode 3.5 so, GCC), Linux (GCC), and Windows (Vis Studio 2010). It uses stl vector for collections of objects. It implements message passing. The engine is using OpenGL on the…
Nektarios
  • 10,173
  • 8
  • 63
  • 93
1
vote
0 answers

How can I use The Cocotron to build a simple app for Windows?

I'm having trouble getting The Cocotron to work. The web site has some instructions. Though, these are outdated and vague. Can anyone explain to me how to use The Cocotron to build a simple test app for Windows? What I'd like to do is take the…
user2403342
  • 181
  • 1
  • 7
1
vote
1 answer

Looking for a cocoa method to simulate a button press that does not have an Event as a parameter

I need to simulate a button press on my Cocoa button programatically and I am trying to do this on cocotron which unfortunately does not have the NSEvent method:…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
1
vote
1 answer

Problems with Cocotron

I've been trying to use Cocotron and installed it with the Instructions on their site, but when i try to build their example app with Cocotron it doesn't work and I get a load of errors about things being undeclared like NSString and YES. It seems…
Joshua
  • 15,200
  • 21
  • 100
  • 172
1
2