While trying to get Allegro to work in OSX under mzscheme I had to hack
the osx internals a little bit. The basic hack is to not let OS X start
up a normal Cocoa run loop, but rather let mzscheme call the update()
method repeatedly to pump events from OS X into Allegro. Even though its
simple this took me a while to come up with and I thought maybe it could
be part of Allegro so other people can benefit from it. If its in the
source it wont affect any other applications at all, someone would have
to explicitly call the methods involved to affect anything. Im not sure
what other languages like AlPy are doing to get Allegro working in OS X
if they are at all but I imagine its something similar.
Attached is the source in its current ugly form.
From: Grzegorz Adam Hankiewicz <gradha@ti...> - 2006-08-29 04:44:15
On 2006-08-28, Jon Rafkind <workmin@...> wrote:
> [...] Im not sure what other languages like AlPy are doing to
> get Allegro working in OS X if they are at all but I imagine its
> something similar.
I can tell you I do nothing, simply because so far I haven't gone
out of Linux realm. In fact, recently somebody asked about Windows
compile problems and I just can't help them. I'll keep your message
in mind for the future if I get a mac, or mac developers.