Here is my understanding of how an application talks with WindowServer:
Where can I find documentation for the red parts?
For example, I would like to know how NSWindowController manages to create a window. I could not find this in any of the documented APIs (CoreGraphics, QuartzCore, etc). Is there some other API providing this (shown as ??? is the diagram)?
The ideal answer to my question would be a small C program than manages to launch an application by using only low-level RPCs (I do realize that such a program would only work on a single version of macOS if it relies on undocumented APs).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…