I was wondering what is NSWindowGraphicContext and how can I access it? It seems hidden. In any case, when I follow the className code, it turns out to be NSWindowGraphicContext.
NSGraphicsContext *graphiccontext = [NSGraphicsContext currentContext];
const char* className = class_getName([graphiccontext class]);
Same thing with CGContextRef.
Documentation says
"The window graphics context is the graphics context that you can use to draw in the window. Note that since Quartz 2D is a graphics engine and not a windowing system, you use one of the application frameworks to get the graphics context for the window."
But it does not give a title for the title or details for creating, how is this done for the context of the bitmap and the context of the PDF? I would like to know more about them.
I assume that Apple does not want to disclose this data to the user. But I need to know more.
source
share