thanks. I will try that now. Do I have to do anything special with BS, or just install it?
Hi Pavlos,You simply pass a Proc object.handler = Proc.new do |result|if result == …...endoPanel.beginSheetModalForWindow self.window, completionHandler: handlerMake sure you installed the latest BridgeSupport preview before, available from http://www.macruby.org/files.LaurentOn May 6, 2011, at 5:38 PM, Pavlos Vinieratos wrote:_______________________________________________hello. how can I write this in macruby?[oPanel beginSheetModalForWindow:[self window]
completionHandler:^(NSInteger result) {
if (result == NSFileHandlingPanelOKButton) {
for (NSURL *fileURL in [oPanel URLs]) {
// do something with fileURL
}
}
}];the second arg is a handler..thank you
--
Pavlos Vinieratos
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel