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,
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
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
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