Hi -

I'm new to cocoa, but pretty comfortable with ruby.  I'm trying to draw an image in a custom view in a document based app.  Here's my code:

require 'osx/cocoa'

class MapView <  OSX::NSView
  include OSX

  ns_overrides 'initWithFrame:', 'drawRect:'

  def initWithFrame (frame)
    super_initWithFrame(frame)
    @mapbase = NSImage.imageNamed("map_blank")
   
    return self
  end

  def drawRect (rect)  
    @mapbase.compositeToPoint(:drawPoint, :operation, NSCompositeSourceOver)
   
  end
end

I can't get it to compile.  What is the right way to do this?

thanks in adavance,
-Matt
--
haazmatt@gmail.com