Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Brad Wilson
Haha I am out of ideas sorry Frisco. Good luck with it! On 03/04/2009, at 10:25 PM, Frisco Del Rosario wrote: Brad Wilson: > This is untested, but I'd suggest trying: > def webView(sender, didReceiveTitle:title, forFrame:frame) >sender.window.setTitle(title) > end > D

Re: [MacRuby-devel] Obj-C translation

2009-04-03 Thread Brad Wilson
I think you've translated that a little wrong. This is untested, but I'd suggest trying: def webView(sender, didReceiveTitle:title, forFrame:frame) sender.window.setTitle(title) end Does that sound right to anybody else? The method name should be the bit after the first ), and before

Re: [MacRuby-devel] NSArrayController

2008-12-29 Thread Brad Wilson
t its something trivial and obvious. Just not to me. On Tue, Dec 30, 2008 at 9:59 AM, Brad Wilson wrote: Nic, I ended up getting by without those methods and using an init method. http://lists.macosforge.org/pipermail/macruby-devel/2008-October/000582.html To be honest, I'm not too sur

Re: [MacRuby-devel] NSArrayController

2008-12-29 Thread Brad Wilson
Nic, I ended up getting by without those methods and using an init method. http://lists.macosforge.org/pipermail/macruby-devel/2008-October/000582.html To be honest, I'm not too sure why init worked, and initialize didn't, but if I remember correctly, initialize wasn't being called and init

Re: [MacRuby-devel] NSImage issue?

2008-11-13 Thread Brad Wilson
Sorry few typos in there, the only one that really matters is that the method call should be: icon.drawInRect(rect, fromRect:NSZeroRect, operation:NSCompositeSourceOver, fraction:1.0) On 13/11/2008, at 9:09 PM, Brad Wilson wrote: I think there's a problem with your method call. I

Re: [MacRuby-devel] NSImage issue?

2008-11-13 Thread Brad Wilson
I think there's a problem with your method call. If you look at the cocoa doc is has a selector with the signature: drawInRect:fromRect:operation:fraction. To call that from MacRuby you'd want to do something like: icon.drawInRect(rect, fromRect:NSZeroRect, operationNSCompositeSourceOver, fra