Get a list of opened windows cocoa

前端 未结 4 1565
北海茫月
北海茫月 2021-01-05 12:31

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

4条回答
  •  死守一世寂寞
    2021-01-05 13:17

    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

提交回复
热议问题