SDL and Lispworks on Mac
I've been using Lispworks with the SDL bindings in the lispbuilder-sdl project successfully for games running on Linux and Windows platforms. I'm having trouble getting my game to work on the Mac and I'm hoping someone has solved this problem before.The problem is SDL requires cocoa wrapper code to run on the Mac. The wrapper creates a cocoa window for SDL and also handles passing events down to SDL. I've tried several of the SDLMain.m wrappers out there, and I've also tried the cocoahelper that comes with lispbuilder- sdl and have had no success. I suspect that LispWorks isn't working because there is already an application window created by the IDE.
When I launch my SDL game (without a wrapper) I get a new window, and SDL paints to it just fine. SDL events are not working though. Maybe all I need to do is connect the events, but I dont know enough about the internals of cocoa and SDL to do this.
Has anyone ever had any success doing this? What would be really great is an CAPI:SDL-PANE, similar to the OpenGL pane in the examples.
I'm using Lispworks Pro 5.02 on the Mac.
Thanks in advance,
Anthony