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: NSNotificationCenter.defaultCenter.addObserver(self, selector: "handleM e:", name: "kDocSetSelectionChanged", object: nil) I found http://www.macruby.org/trac/ticket/760 that hinted MacRuby does impleme nt blocks, but also had references to BridgeSupport. I installed the preview-3 version; what would be the reason the above didn't work? Thanks. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel