Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-15 Thread Mark Rada
On 2010-11-15, at 4:50 PM, Ryan Davis wrote: > > On Nov 14, 2010, at 18:37 , Mark Rada wrote: > >> Now, when I try this out in macirb: (Case #3) >> >> require 'uri' >> test = URI.parse url unless (url = 'http://macruby.org/').nil? # error >> test = URI.parse url unless (url = 'http://wikip

Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-15 Thread Ryan Davis
On Nov 14, 2010, at 18:37 , Mark Rada wrote: > Now, when I try this out in macirb: (Case #3) > > require 'uri' > test = URI.parse url unless (url = 'http://macruby.org/').nil? # error > test = URI.parse url unless (url = 'http://wikipedia.org/').nil? # works > > If it doesn't work in the

Re: [MacRuby-devel] Neat MacRuby app, HotCocoa, and more!

2010-11-15 Thread Gary Weaver
Leigh, The impression I got with HotCocoa is that the core MacRuby team was busy enough with MacRuby to not want to get distracted with helping develop it. I know that many including myself would be interested in seeing it expand. (Rich did an awesome job with it, but it seemed to have a long

[MacRuby-devel] NSEvent MacRuby (updated)

2010-11-15 Thread András Zalavári
(I'm not sure if the previous mail was sent otherwise sorry for the multiple posts) Hello, I'm new to MacRuby. I found an unexpected behavior of NSEvent. first of all in Cocoa [NSEvent mouseLocation] would return an NSPoint, with the mouse position. MacRuby NSEvent.mouseLocation return an NSPoint

[MacRuby-devel] calling Objective-C method with block parameter

2010-11-15 Thread Alan Skipp
Hello everyone, I'm attempting to call a method on an Objective-C object which takes a block as its parameter, but I'm not having much luck. I can happily create the object in Macruby and send the message with a Proc. The NSLog call within the Objective-C method body succeeds, but the 'block()'