[MacRuby-devel] Framework callbacks in macirb

2009-02-04 Thread Barry Walker
I'm clearly in over my head here, but I'm hoping macruby can simplify some complexity. I've cobbled together an objective c framework with a class that handles some IO Kit transactions. The framework seems to work with objective c cocoa applications. I would like to use this framework from macir

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-05 Thread Barry Walker
Laurent, Neither macirb or macruby start the CF/Cocoa runloop for you by > default [1], so you will have to start it by yourself. You can call > NSApplication.sharedApplication.run or NSRunLoop.currentRunLoop.run. > > If you do this from macirb it will block as expected and you won't be > able to

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-06 Thread Barry Walker
> > I downloaded hotconsole, but can't seem to get it raked / built / >> installed. I can't find any install instructions. There is a mention that >> you need the latest branch, so I grabbed the testing branch and built it, >> but still no luck with hotconsole. >> > > The latest code is in trunk.

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Barry Walker
Thanks again for the help. I macraked the trunk and hotconsole and it worked, sort of. With the trunk build, my framework won't load. >> framework 'VersaPHY' 2009-02-09 12:04:12.258 macruby[35283:10b] Error loading /Users/barry/Library/Frameworks/VersaPHY.framework/VersaPHY: dlopen(/Users/barry/

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Barry Walker
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 exac

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Barry Walker
re 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