Suppose my Macintosh machine has dual monitors how can I accurately determine the monitor in which my application is in.
[NSScreen mainScreen] returns the screen with the focused window. Call this method while you're application is activated