Basic idea: The window will be show for x seconds every n minutes on all displays. To "force" the user to take a break.
My problem is to get the window to show on all displays, how can this be done with swift?
Basic idea: The window will be show for x seconds every n minutes on all displays. To "force" the user to take a break.
My problem is to get the window to show on all displays, how can this be done with swift?
Unless the user has their desktop Mirrored there is no way to display one NSWindow on all screens.
The only way to do this is to pretty much create a new window for each screen.
If your NSWindowController, NSWindow etc... complies with NSCopying, just copy it and take a look at this post regarding displaying NSWindows in various screens:
How to change the NSScreen a NSWindow appears on
Hope this helps.