Is there a way to iterate over all open windows in Mac OS X?

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2012-07-09T20:18:59Z Indexed on 2012/07/09 21:15 UTC
Read the original article Hit count: 266

Filed under:
|
|

When you unplug an external monitor with a higher resolution that your macbook from your laptop, the windows mostly retain their width, but their size gets clipped to the (smaller) height of the macbook screen. When you plug the monitor back in, their size remains frustratingly small.

My question is: is there any way that I can iterate over all open windows, save their size, and restore them once the monitor gets plugged in again?

© Stack Overflow or respective owner

Related posts about osx

Related posts about cocoa