[MacRuby-devel] Mapping of Objective-C Blocks to MacRuby
Laurent Sansonetti
lsansonetti at apple.com
Thu May 13 00:47:50 PDT 2010
Hi Steve,
C-level blocks are not yet supported. But this is something we could do in the next release, 0.7! Could you file a bug so that we do not forget about it?
Thanks,
Laurent
On May 12, 2010, at 11:36 PM, steve ross wrote:
> I was thinking syntax like:
>
> open_panel = NSOpenPanel.openPanel
> open_panel.beginSheetModalForWindow(@main_window,
> completionHandler:lambda{|arg| "Yo, open file and user arg is #{arg}")
>
> would be pretty sensible. But it seems not to be. Any hints?
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list