Re: [MacRuby-devel] Rspec, Embedded frameworks and ENV['DYLD_FRAMEWORK_PATH']

2011-01-21 Thread Eloy Duran
Xcode sets the env variable durin build time. So running this from a 'build phas script' (or whatever it is called) should work. However, if you just run this from the terminal it won't, as the env var isn't defined, so you should set it yourself. HTH On 19 jan. 2011, at 17:12, Michael Hagedor

Re: [MacRuby-devel] [macruby-changes] [5186] MacRuby/trunk/hash.h

2011-01-21 Thread Laurent Sansonetti
Hi Watson, This isn't good, rhash_modify() must be very fast, so calling OBJ_FROZEN and OBJ_UNTRUSTED is not good there. Can we look up the mask flag as before? Laurent On Jan 21, 2011, at 7:51 AM, [email protected] wrote: > Revision > 5186 > Author > [email protected] > Date >

[MacRuby-devel] Setting properties on a dereferenced NSRangePointer has no effect

2011-01-21 Thread Caio Chassot
Hi all, NSFormatter defines a method with the following selector: isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription: This is its signature: - (BOOL)isPartialStringValid:(NSString **)partialStringPtr proposedSelectedRange:(NS

Re: [MacRuby-devel] [macruby-changes] [5186] MacRuby/trunk/hash.h

2011-01-21 Thread Watson
Hi Laurent, There is only the extremely slight difference. I think that I can ignore this. How do you think? I attached a patch and benchmark script. ** Result of r5185 $ macruby bm_hash.rb Rehearsal 13.64 0.21 13.85 ( 9.114591) ---

[MacRuby-devel] Thread safety in apply example?

2011-01-21 Thread Charles Oliver Nutter
I'm curious about this example in Queue#apply's rdoc: * gcdq = Dispatch::Queue.new('doc') * @result = [] * gcdq.apply(5) {|i| @result[i] = i*i } * p @result #=> [0, 1, 4, 9, 16, 25] apply is said to issue the jobs in parallel, so this would be making concurrent updates to the

[MacRuby-devel] Concurrency bug in ControlTower

2011-01-21 Thread Charles Oliver Nutter
Apologies reporting this here; I'm not sure where I should report bugs in ControlTower. I believe there's a bug in ControlTower around line 34: def open @status = :open while (@status == :open) connection = @socket.accept # << here @request_queue.async(@request_gr