How to create an inaccessible window on Mac OS?
I mean a window which will not be accessible via Cocoa, Carbon or other CoreGraphics API for obtaining NSWindow *, WindowRef and others.
Like X11 application on Mac does.
Such a window that if you pass its window ID to [NSApp windowWithWindowID] or HIWindowFromCGWindowID() they both return NULL.
开发者_StackOverflow社区Thanks!
There's CoreGraphics Private API. Its definition is available thanks to reverse engineering. If some window is created with such API it won't be accessible via [NSApp windowWithWindowNumber: (NSInteger)windowID] or HIWindowFromCGWindowID() functions.
Xquartz uses Xplugin library, which in turn uses CoreGraphics Private API.
精彩评论