osx - Macintosh Application location in case of dual monitor -


Suppose that my Macintosh machine has dual monitors, how can I set the monitor correctly in my application.
/ div>

[NSScreen main screen] gives the screen with a focused window is. When you are applying, call this method

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -