[MacRuby-devel] Mapping of Objective-C Blocks to MacRuby

steve ross cwdinfo at gmail.com
Wed May 12 23:36:12 PDT 2010


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?


More information about the MacRuby-devel mailing list