Re: [MacRuby-devel] Invoking an obj-c method requiring a block

2011-09-29 Thread Andy Park
Laurent Sansonetti writes: > > Hi Andy, > > Blocks should work. Perhaps there is a problem with this very specific > API. Could you file a ticket? We will investigate. > > Thanks > Laurent > Hi Laurent, Thanks for your feedback. I am now seeing the issue only intermittently; I repo rted it

Re: [MacRuby-devel] Invoking an obj-c method requiring a block

2011-09-18 Thread Laurent Sansonetti
Hi Andy, Blocks should work. Perhaps there is a problem with this very specific API. Could you file a ticket? We will investigate. Thanks Laurent On Sat, Aug 20, 2011 at 11:52 PM, Andy Park wrote: > I tried using blocks today, to no avail. > > This didn't work: >                NSNotificationCe

[MacRuby-devel] Invoking an obj-c method requiring a block

2011-08-20 Thread Andy Park
I tried using blocks today, to no avail. This didn't work: NSNotificationCenter.defaultCenter.addObserverForName "kDocSetSelection Changed", object:nil, queue:nil, usingBlock:Proc.new{ |notification| NSLog("notified") } But this did: