Re: [MacRuby-devel] Possible bug launching an NSTask from within and NSOperation subclass

2010-07-20 Thread Leigh Caplan
Hi Laurent, This was basically a direct port of a pure ObjC application that works correctly in this same situation. I just went and implemented this reduced case in ObjC, and interestingly enough, I *can* reproduce the issue. Here's the app: http://github.com/texel/NSOperationCocoaDebug Now,

Re: [MacRuby-devel] Possible bug launching an NSTask from within and NSOperation subclass

2010-07-19 Thread Matt Aimonetti
I don't know if that helps but here is an app I wrote using NSTask and working just fine: http://github.com/mattetti/couchdbx-app/tree/master/macruby_version/CouchDBX/ NSTask is wrapped to make its use a bit easier: Usage: http://github.com/mattetti/couchdbx-app/blob/master/macruby_version/Couch

Re: [MacRuby-devel] Possible bug launching an NSTask from within and NSOperation subclass

2010-07-19 Thread Laurent Sansonetti
Hi Leigh, I had a quicklook at the code. I am not sure if running the main runloop from an NSOperation is the right thing to do here, I suspect that's what's causing the problem. It might be interesting to use the NSTask's notification functionality here or try to rewrite this code in pure ObjC

[MacRuby-devel] Possible bug launching an NSTask from within and NSOperation subclass

2010-07-19 Thread Leigh Caplan
Hi there, I've encountered what I believe to be a bug, but I'd like more eyes on it to make sure I'm not doing something wrong. I've set up a simple application, with one controller that has a reference to an NSOperationQueue. When a button is pressed, the controller queues up an NSOperation su