Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-25 Thread Laurent Sansonetti
Agreed. I just removed it and appropriately changed the wiki to not mention it anymore. Laurent On Feb 25, 2009, at 3:34 AM, Eloy Duran wrote: No, please just use trunk. You can switch the "location" of a checkout: http://svnbook.red-bean.com/en/1.0/re27.html Laurent, should we remove the

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-25 Thread Eloy Duran
No, please just use trunk. You can switch the "location" of a checkout: http://svnbook.red-bean.com/en/1.0/re27.html Laurent, should we remove the testing branch, I think it's misleading and un-useful atm. Cheers, Eloy On Feb 8, 2009, at 3:43 PM, Pedo Borges wrote: Checkout the testing b

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-25 Thread Pedo Borges
Checkout the testing brach from the svn repository. On Feb 8, 2009, at 12:05 PM, Tedd Fox wrote: Sorry for the newb question, but how can one upgrade from .3? On Feb 8, 2009, at 3:14 AM, Vincent Isambart wrote: Macintosh:vincentisambart-hotconsole- cbdd6d06ece482e124516359cd9299294667daeb b

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Barry Walker
Laurent, Initially I ran HotConsole, loaded my framework, and sent a packet. I verified there was a response on the bus analyzer, but there was no indication of response packet callback and no packet data ever showed up in the object. Thinking I may have misunderstood, I called NSApplication.shar

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Laurent Sansonetti
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 r

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 Laurent Sansonetti
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 ow

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 Brian Chapados
It is well worth your time to learn the basics of C and Objective-C, even if your ultimate goal is to mainly use MacRuby (http://www.joelonsoftware.com/articles/LeakyAbstractions.html ect.). They are small languages, and everything you need is covered in about 200 pages[1,2]. The cocoa libraries ar

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Pedro Borges
http://rubyosa.rubyforge.org/ On Mon, Feb 9, 2009 at 4:28 AM, Robert Schaaf wrote: > Tedd, > > To quote Ogden Nash, I'm a stranger here myself. > > I agree about objective-c; it's notationally unattractive. It seems to be > an uncomfortable hybrid, despite the power of the object model. > > The

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Dave Baldwin
On 9 Feb 2009, at 04:28, Robert Schaaf wrote: Tedd, To quote Ogden Nash, I'm a stranger here myself. I agree about objective-c; it's notationally unattractive. It seems to be an uncomfortable hybrid, despite the power of the object model. The only appreciable Ruby code I've written is a

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-09 Thread Matt Mower
On Mon, Feb 9, 2009 at 4:28 AM, Robert Schaaf wrote: > I agree about objective-c; it's notationally unattractive. It seems to be > an uncomfortable hybrid, despite the power of the object model. > These things are subjective. Despite my love of Ruby I find I am quite happy writing Objective-C.

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-08 Thread Robert Schaaf
Tedd, To quote Ogden Nash, I'm a stranger here myself. I agree about objective-c; it's notationally unattractive. It seems to be an uncomfortable hybrid, despite the power of the object model. The only appreciable Ruby code I've written is a program that parses the header of a DB2 IXF fil

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-08 Thread Tedd Fox
Awesome advice!!! I actually "accidentally" did that last night :-) Thanks! I am learning Ruby and I am a Macintosh NOT but do not "get" objective-C for some reason, so I am choosing MacRuby as my Speciality. I am glad MacRuby came along :-) I like the faster prototyping ability (which

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-08 Thread Robert Schaaf
Hello Tedd, This happened to me until I realized that I updated from the testing branch, rather than the development branch. My guess is that you've done the same. You need to go here and follow the directions at the top of the page.

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-08 Thread Tedd Fox
Sorry for the newb question, but how can one upgrade from .3? On Feb 8, 2009, at 3:14 AM, Vincent Isambart wrote: Macintosh:vincentisambart-hotconsole- cbdd6d06ece482e124516359cd9299294667daeb barry$ macrake (in /Users/barry/dev/vincentisambart-hotconsole- cbdd6d06ece482e124516359cd9299294667

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-08 Thread Vincent Isambart
> Macintosh:vincentisambart-hotconsole-cbdd6d06ece482e124516359cd9299294667daeb > barry$ macrake > (in > /Users/barry/dev/vincentisambart-hotconsole-cbdd6d06ece482e124516359cd9299294667daeb) > rake aborted! > no such file to load -- hotcocoa/standard_rake_tasks > /Users/barry/dev/vincentisambart-

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-06 Thread Eloy Duran
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. The testing

Re: [MacRuby-devel] Framework callbacks in macirb

2009-02-05 Thread Vincent Isambart
> 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. If you have installed the last trunk of

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-04 Thread Laurent Sansonetti
Hi Barry, On Feb 4, 2009, at 7:46 PM, Barry Walker wrote: 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

[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