I want to use
GlyphsToolOther.cutPathsInLayer_forPoint_endPoint_(self, Point1, Point2)
in OC.,I declared my interface
@interface GlyphsToolOther : GlyphsPathPlugin
-(void)cutPathsInLayer:(GSLayer *)layer forPoint:(NSPoint)p1 endPoint:(NSPoint)p2;
@end
, and I obtained the throught ergodic doc.windowController.toolInstances that GlyphsPathPlugin.className=‘GlyphsToolOther’
but when I do
[otherTool cutPathsInLayer:layer forPoint:node0.position endPoint:node1.position];
it tell me -[GlyphsToolOther cutPathsInLayer:forPoint:endPoint:]: unrecognized selector sent to instance .
it run in python
GlyphsToolOther = NSClassFromString("GlyphsToolOther")
GlyphsToolOther.cutPathsInLayer_forPoint_endPoint_(Layer, node0.position,node1.position)
Which link did I have a problem?