[MacRuby-devel] handlers and carets

Pavlos Vinieratos pvinis at gmail.com
Fri May 6 17:38:52 PDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110507/c2bb85d3/attachment-0001.html>


More information about the MacRuby-devel mailing list