tags:

views:

108

answers:

1

How can I get the NSWindow object from the frontmost application? What I'm trying to do is a SizeUp, so from my app I could resize the frontmost window of any app.

A: 

You can't get an NSWindow from another app. You might be able to resize a window of another app using accessibility APIs, if the user has enabled access for assistive devices in the Universal Access preferences.

JWWalker