Re: [MacRuby-devel] Low-ish level MacRuby interaction

2009-06-10 Thread Jude Sutton
Hi Scott, Have you considered setting sync to true in your ruby code: STDOUT.sync = true This will tell stdout to flush after every write/puts etc. - Jude 2009/6/11 Scott Thompson > > On Jun 10, 2009, at 6:01 PM, Laurent Sansonetti wrote: > > Hi Scott! >> >> Here is a code snippet that hij

Re: [MacRuby-devel] Low-ish level MacRuby interaction

2009-06-10 Thread Scott Thompson
On Jun 10, 2009, at 6:01 PM, Laurent Sansonetti wrote: Hi Scott! Here is a code snippet that hijacks stdout using an NSPipe. The idea is to first initialize the MacRuby VM (so that the standard descriptor objects are created), then use dup2(2), then evaluate your Ruby expressions. I

Re: [MacRuby-devel] Low-ish level MacRuby interaction

2009-06-10 Thread Laurent Sansonetti
Hi Scott! Here is a code snippet that hijacks stdout using an NSPipe. The idea is to first initialize the MacRuby VM (so that the standard descriptor objects are created), then use dup2(2), then evaluate your Ruby expressions. #import #import int main(void) { MacRuby *vm = [MacRuby

[MacRuby-devel] Low-ish level MacRuby interaction

2009-06-10 Thread Scott Thompson
Howdy folks, I'm working with MacRuby as it evolves and I've been enjoying it quite a lot. I'm trying to make use of the system in an unusual way and not having much luck. I thought I would post here and see if anyone has suggestions. What I'm trying to do is use MacRuby as an embedded

Re: [MacRuby-devel] [MacRuby] #283: Build fails on Snow Leopard

2009-06-10 Thread MacRuby
#283: Build fails on Snow Leopard ---+ Reporter: jfahrenk...@… |Owner: lsansone...@… Type: defect | Status: closed Priority: blocker|

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Richard Kilmer
From Laurent's last update: - The project is now able to be installed and used on Mac OS 10.6. It should theoretically work with the latest seeded build, using the same building instructions as mentioned in README.rdoc, and pass our spec suite. Please contact me offline if you have any prob

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Ernest N. Prabhakar, Ph.D.
Hi Matt, On Jun 10, 2009, at 9:36 AM, Matt Aimonetti wrote: Guys, I'm not a SL privileged early user so I can't address this problem, but think I remember Laurent asking to not report SL/MacRuby bugs about until SL is out. However, I think he mentioned a forum or something like that for

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Matt Aimonetti
Guys, I'm not a SL privileged early user so I can't address this problem, but think I remember Laurent asking to not report SL/MacRuby bugs about until SL is out. However, I think he mentioned a forum or something like that for SL users to discuss issues. Can someone from Apple/Laurent clarify t

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Jonathan Waddilove
Rich, Thanks, I'll try 0.5 again and see how I do. regards, Jonathan smime.p7s Description: S/MIME cryptographic signature ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-d

[MacRuby-devel] [MacRuby] #283: Build fails on Snow Leopard

2009-06-10 Thread MacRuby
#283: Build fails on Snow Leopard ---+ Reporter: jfahrenk...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker| Mil

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Richard Kilmer
As far as I know, the experimental branch (0.5) is supposed be be SL friendly, I don't think 0.4 was/is. The experimental branch will move to trunk as soon as a few more stabilizations take place. The good news is 0.5 is running a significant number of the Ruby Specs and passing with flyi

Re: [MacRuby-devel] Cocoa Framework compatibility

2009-06-10 Thread Thomas Dohmke
Hi. Am 10.06.2009 um 07:28 schrieb Keenan Brock: Does anyone have a link to a tutorial in setting up a framework that is MacRuby friendly? I tried but don't know XCode well enough to get a project that was happy enough to produce the framework. For a bundle see here: http://www.macruby.org/

[MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Jonathan Waddilove
Should we expect MacRuby 0.4 to work under the SnowLeopard beta? I'm seeing crashes in both macirb and magem (see below). I've also tried 0.5 branch and that has crashes as well. (hope you're all enjoying WWDC) Crashes MacIrb: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/bin/macru

Re: [MacRuby-devel] Cocoa Framework Compatibility

2009-06-10 Thread Public Farley
Hi Laurent, Theoretically speaking. If, as you say, "write an alternative (simple) GC based on the retain/release/autorelease model, so that MacRuby can run within a process that does not support the ObjC GC." Does that open the gateway to iPhone development?? Farley farleycae...@me.com S

Re: [MacRuby-devel] Cocoa Framework compatibility

2009-06-10 Thread Keenan Brock
Hi All, Does anyone have a link to a tutorial in setting up a framework that is MacRuby friendly? I tried but don't know XCode well enough to get a project that was happy enough to produce the framework. Guess this is an XCode question, but I like using textmate / hotcocoa. While I don't