[MacRuby-devel] C-level blocks (issue #712)?

Rolando Abarca rolando at gamesforfood.com
Sun Jan 9 08:09:04 PST 2011


Hi all,

I've taken a look at the referred issue (#712), but I'm not sure of
the final implemented syntax. I'm trying to use a NSOpenPanel, so far
this is what I'm doing:


{{{
  def loadSprite(sender)
    @panel.beginSheetModalForWindow(@window, completionHandler:lambda { |code|
      NSLog("code: #{code}")
    })
  end
}}}

what's the Right Way(tm) to use a NSOpenPanel?
thanks!
-- 
Rolando Abarca M.
Games For Food S.p.A.
http://www.gamesforfood.com
Phone: +1 (408) 345-5433


More information about the MacRuby-devel mailing list