how to move NSWindow to a particular screen?
问题 In my app I need to be able to move my app's windows between the screens programmatically. I'm working on my MacBookPro and I'm connected to DELL monitor. So what I want to do is to have a method that would move my app's window from my laptop screen to the external DELL one. Does anyone know how to achieve it? Any help is highly appreciated! 回答1: [NSScreen screens] gives you an array of NSScreens. The screen at index 0 is the one that's got your menu on. So pick the other screen from the