Thank you Christian. I've just created a custom class of type CustomNSViewMBS, and put this in the DrawRect event:
g.SetColorRGB(255, 255, 255)
g.fillRect(0, 0, 100, 100)
As hoped, a white rectangle was drawn. I can't get a picture to draw though. I've used:
g.drawAtPoint(p, 0, 0, 0, 0, 0, 0, 1, 1.00)
in the DrawRect event, but I get Code, "Parameters are not compatible with this function". I checked the manual for the Cocoa plugin, and from what I can tell specifying all zeroes for the dimensions to draw into should draw the whole image, and I checked the Cocoa NSCompositingOperation on Apple's NSImage class reference, which stated that a value of 1 is NSCompositeCopy. I can't work out what I've done wrong
