I\'m new to Cocoa and I want to know how I can get a list of all open windows. I\'m not talking about running programs, since this would be an easy task. I want to list wind
First, Cocoa is not an acronym, so it's not "COCOA". :-)
Second, your only (public API) option is the Accessibility API. You'll have to enable access for assistive devices in the Accessibility panel in Systems Preferences.
Take a look at the docs to get started: Accessibilty Overview