The documentation says it pushes it on to a stack: "Pushes a copy of the current graphics state onto the graphics state stack for the context."
It also says: "To restore your drawing environment to a previously saved state, you can use CGContextRestoreGState." with the clear implication that you can have multiple of them. And it works in practice too… Kind of not sure why the question, since it is clearly stated in the documentation... Regards Gideon On 16/02/2012, at 5:22 AM, William Squires wrote: > Does this method store the context state in a stack, or just store it in a > local variable (struct) somewhere (i.e. does calling this more than once > overwrite the previously saved context info?) > > _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
