Generates and returns information about windows with the specified window IDs.
- macOS 10.5+
- UIKit for Mac 13.0+Beta
- Core Graphics
An array of
CGWindowtypes, each of which corresponds to a window whose information you want to retrieve.
An array of
CFDictionary types, each of which contains information about one of the windows in the current user session. If there are no windows matching the desired criteria, the function returns an empty array. If you call this function from outside of a GUI security session or when no window server is running, this function returns
This function ignores any window IDs in the
window parameter that refer to windows that no longer exist. (This can occur if the user closes a window between the time you retrieve its ID and the time you call this function.) You should therefore not assume that the returned array of dictionaries contains the same number of entries as this parameter. To make it easier to associate window IDs with the correct information, however, each dictionary does contain a
k key whose value is the corresponding window ID. For the list of keys and values that may be present in the dictionary, see Required Window List Keys and Optional Window List Keys.