Re: [MacRuby-devel] Strange behaviour when using a Proc for a callback

2011-02-03 Thread Joshua Ballanco
Looks like a bug with the way the Cocoa object is boxed. Can you file it at https://www.macruby.org/trac/newticket ? Cheers, Josh On Wed, Feb 2, 2011 at 8:51 PM, Mark Rada wrote: > Hi, > > I was trying to setup an async callback using a proc instead of a method to > register for app launching

[MacRuby-devel] Strange behaviour when using a Proc for a callback

2011-02-02 Thread Mark Rada
Hi, I was trying to setup an async callback using a proc instead of a method to register for app launching notifications. For some reason, when I use the proc method, I get the wrong object passed to the proc when it gets called. The version using a method callback: framework 'Cocoa'