NSScreen.screens under multiple displays
NSScreen.screens under multiple displays
- Subject: NSScreen.screens under multiple displays
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Thu, 8 Jun 2023 18:53:34 +0200
In my method
- (void) viewDidMoveToWindow
I have these lines of code:
window_ = [self window];
NSUInteger idx_of_screen = [NSScreen.screens indexOfObject: window_.screen];
My question is: will this always produce the same results, whether or not the
user has switched "Displays have separate Spaces" on or off (under Desktop &
Dock).
Best regards, Gabriel
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden