In GSPath
, there used to be methods removeNodeAtIndex
and insertNode:AtIndex:
. Now we seem to have methods removeObjectFromNodesAtIndex
and insertObject:InNodesAtIndex:
. Can you confirm these are direct replacements?
Also, (in case anyone googles later) it looks like the usual way to draw text on the edit view:
[[editViewController graphicView] drawText:s atPoint:p alignment:a]
has similarly gone away. I think the replacement should be:
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
[paragraphStyle setAlignment:a];
NSDictionary* attrs = @{
NSFontAttributeName: [NSFont labelFontOfSize: 10/currentZoom ],
NSForegroundColorAttributeName:col,
NSParagraphStyleAttributeName:paragraphStyle
};
NSAttributedString *label = [[NSAttributedString alloc] initWithString:s attributes:attrs];
[label drawAtPoint:p];
But I’m not sure.
Also, the RMX tools now hate me because GSFontMaster
doesn’t have a weight
method any more. API changes and third-party extensions are a hard combination to get right.