'GSPathPen' object has no attribute 'beginPath_'

pen = GSPathPen.alloc().init()
myLayer.drawInPen_(pen)
pen.beginPath()

The third line fails because of the error in the title despite me not having the underscore. Is this a typo? Thanks

I believe this is a mistake in the wrapper. Will take a look.

What do you need the third line for? All the drawing is done at that point.
The GSPathPen is not the same as a python pen. They have a different API.

It’s based on someone else’s code and I didn’t know I could skip it. It works without that line!