






























ProcessSerialNumber psn = { 0, kCurrentProcess };
TransformProcessType(&psn, kProcessTransformToUIElementApplication);
// Create window
NSWindow* window = [[NSPanel alloc]
initWithContentRect:frame
styleMask:NSWindowStyleMaskTitled |
NSWindowStyleMaskNonactivatingPanel // the most important mask
backing:NSBackingStoreBuffered
defer:YES
screen:screen];
// Set window space behavior
[window setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces |
NSWindowCollectionBehaviorFullScreenAuxiliary];
// Set window level
[window setLevel:CGShieldingWindowLevel()];
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。