[MacRuby-devel] [MacRuby] #712: Feature Request: Add Support for C-Level Blocks

MacRuby ruby-noreply at macosforge.org
Thu May 13 12:02:21 PDT 2010


#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/>



More information about the MacRuby-devel mailing list