#712: Feature Request: Add Support for C-Level Blocks -------------------------------+-------------------------------------------- Reporter: cwdinfo@… | Owner: lsansonetti@… Type: enhancement | Status: new Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: block -------------------------------+-------------------------------------------- Comment(by jazzbox@…): my suggestion is: {{{ open_panel = NSOpenPanel.openPanel open_panel.beginSheetModalForWindowOnCompletion(@main_window) do |arg| puts "Hello, open file and user arg is #{arg}" end }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/712#comment:4> MacRuby <http://macruby.org/>