Advertisement
Advertisement


Launching a program so that it opens in center of the launching application


Question

Launching a program so that it opens in center of the launching application.

Platform: Mac Launching mechanism: a c++ program launches using system()

Currently I observe the program launched pushes it to left most part of the screen.

2010/06/22
1
0
6/22/2010 9:51:09 PM


If you're using system, there's really nothing you can do, since you've implicitly delegated everything about the process except its startup args to the OS. There may be ways to accomplish this using other OSX-specific APIs, but not with the parameters you've outlined here.

2010/06/22

Source: https://stackoverflow.com/questions/3097391
Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Email: [email protected]