Created
October 21, 2022 01:51
-
-
Save DargonLee/e5b35a33d71dcb59e1b49b6a6208cfc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSRect rect = CGRectMake(315, 344, 760, 548); | |
NSWindowStyleMask style = NSWindowStyleMaskBorderless | NSWindowStyleMaskNonactivatingPanel; | |
NSPanel *panel = [[NSPanel alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:YES screen:[NSScreen mainScreen]]; | |
panel.level = NSFloatingWindowLevel; | |
// panel.level = NSScreenSaverWindowLevel; | |
panel.collectionBehavior = NSWindowCollectionBehaviorCanJoinAllSpaces | NSWindowCollectionBehaviorFullScreenAuxiliary; | |
[panel orderFrontRegardless]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment