I am trying to script sth around annotations. Accessing or setting their values them via
layer.annotations()
works pretty well, but I seem to not be able to make a new one. I tried
newAnnotation = GSAnnotation()
According to the Core Documentation, I figured it is inherited from GSElement : NSObject
, basically the same as for a GSNode, which works like that:
newNode = GSNode()
etc.
But with my GSAnnotation() trial, I get the Error:
TypeError: Use class methods to instantiate new Objective-C objects
Any hint on that, please?