I get the context with [NSGraphicsContext currentContext], how do I get the NSAffineTransform currently applied to it?
I need this for implementing my own transformation stack where I can perform push and pop actions just like glPushMatrix() and glPopMatrix() in OpenGl.
[NSGraphicsContext saveGraphicsState] doesn’t do it for me because it isn’t stackable, or is it?
It is. Save the graphic state before you apply your changes to the context and restore the state after. Each
saveGraphicsStatemust be paired with correspondingrestoreGraphicsStatecall.