cocotron

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 error: /Developer/Cocotron/1.0/Linux/i386/Frameworks/Foundation.framework//libFoundation.so: undefined reference to `__gnu_objc_personality_v0' I've do...

Getting started with Cocotron

I am trying to learn about Cocotron but I have found very few useful resources outside of the Cocotron website. Can anyone point toward some useful resource that might help me get started. ...

Error with Cocotron windows target

I am trying to get cocotron working on a very basic window app and I followed the instruction here: http://www.cocotron.org/Info/Getting%5FStarted I fixed a few error I was getting initially but now it gives me this error: error: Cocoa/Cocoa.h: No such file or directory Should I not be doing this include or is there something I should ...

Looking for a cocotron example

I have been having a lot of trouble getting cocotron to create a simple window app that can be compiled on the mac and will produce an that will run on the pc. Does anyone have a link to a simple example that I could download where all the setting are correct? This would really help me look and see what the differences are and help me ...

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 like to try and get the frame rate but I don't know how to output to the console. Thanks! ...

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 Cocotron isn't doing its part. What has gone wrong? Here are some Pics of the errors: ...

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

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: mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure: implemented. Is there anyway to programatically simulate a button pre...

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 have to add manual reference counting memory management back into my app in order for it...

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 accomplish this? EDIT: Unfortunately, CGImage and representationUsingType: are not supported by...

Simulating orderedIndex using orderedWindow of NSApplicaiton (Cocoa OSX)

I am working on application that uses cocotron and the method orderedIndex is not supported in that API. I am trying to recreate the functionality of this method using the orderedWindows method of NSApplication but it seems to be a little different. The method I have created goes through the orderedWindows array and checks each element...

Simulating a button press without performClick: (cocoa osx/cocotron)

I need to be able to display popup menu when I press an openGL object. I was able to accomplish this by triggering the performClick: of an inviible NSPopupButton and also by triggering the performClickWithFrame:inView: of an NSPopupButtonCell. Both of these methods were successful on OSX but I also need to target the PC and unfortunat...

Converting .gif to .png format in Cocoa (OSX) without using representationUsingType:properties:

I need to write a method that takes a .gif image file as input and converts it to a 32x32 .png file. The only way I found to do this in Cocoa would be using the representationUsingType:properties: method of NsBitmapImageRep but unfortunatley I cannot use this method because it is not supported by cocotron (an open source API that implem...