If you want to test: You need to “Show Nib Simulator” from the View Menu, and bring up the settings via contextual menu “Nib Settings…”. The nib simulation will apply to the path in the layer background.
The second path (lower right triangle) will be drawn in black, unless you set the fill color using the fill() command. It will not pick up the color set by NSColor.set() at the beginning, which I expect it should?
No, drawPath() will only fill the outline when there is a currentColor and that is set to black by default. Otherwise you couldn’t stroke a path without filling it. Or at least that is how I understand it.
I added the option to do fill(NSColor.greenColor). Otherwise I would not mix Cocoa drawing methods and drawingTools stuff.