Barry,

That's weird, HotConsole should not behave like that. Are you calling NSApplication.sharedApplication.run in the HotConsole prompt by yourself? If yes, then you shouldn't because HotConsole already called it for you. All you should do is use your framework without thinking of the run loop and theoretically it should work fine.

Laurent

On Feb 9, 2009, at 12:58 PM, Barry Walker wrote:

Laurent,

As usual your insight is spot on. I tested the -i386 switch and it worked, then I rebuild the framework for 64-bit and that also worked.

Unfortunately, the initial goal of permitting callbacks to the framework during execution is still not met by HotConsole. HotConsole seems to act exactly like macirb. Callbacks are not executed. Calling NSApplication.sharedApplication.run from HotConsole is a big mistake.

Thanks for all the hand holding anyway.

Barry

On Mon, Feb 9, 2009 at 12:24 PM, Laurent Sansonetti <[email protected] > wrote:
Barry,

MacRuby trunk builds in 64-bit by default, so I suspect that here VersaPHY.framework has only been built for 32-bit only.

Try to load macirb for i386 first and see if you can load your framework:

$ arch -i386 /usr/local/bin/macirb

It is good practice since Leopard to build your own code for both 32- bit and 64-bit mode.

Laurent


_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to