Hi -

I'm trying to draw a hexagon in a view.  I found some sample code to draw a polygon and I decided to start small.  Here's the code:

    tp = { 10, 10, 400, 100, 300, 200, 10, 150 }
    @path = NSBezierPath.bezierPath
   
    @path.moveToPoint_tp[0]
    @path.lineToPoint_tp[1]
    ...  

And here's the error that I'm getting:

`NSApplicationMain': NSApplicationMain - RBException_OSX::OCMessageSendException - NSBezierPath#moveToPoint:tp - methodSignature is nil. (OSX::OCException)

I understand that moveToPoint is an instance method, but aren't I instantiating the NSBezier class with @path?

thanks,
-Matt
--
haazmatt@gmail.com