How to get a list of all open NSWindow from all running application?

Note that not all windows are necessarily NSWindows, and that NSWindow only provides an interface to windows in your own address space.

Up vote 4 down vote favorite 2 share g+ share fb share tw.

Cocoa nswindow link|improve this question asked Oct 27 '10 at 18:26Seymour Cakes1,66221037 65% accept rate.

Note that not all windows are necessarily NSWindows, and that NSWindow only provides an interface to windows in your own address space. The supported way to access every window is the CGWindow API. Take a look at the Son of Grab sample code to see how it's done.

Thanks for the Son of Grab link, most helpful. – Seymour Cakes Oct 28 '10 at 0:33.

You can use the accessibility API (accessibility must be enabled under System Preferences for it to work) to get information on windows (and other UI elements) from other processes. This question might be just what you're looking for.

No. You can only get the NSWindows of your own app. You may be able to use Universal Access or Core Graphics APIs to get some information about windows of other apps, but not full access.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions