Instance Property


An array of window objects arranged according to their front-to-back ordering on the screen.


@property(readonly, copy) NSArray<NSWindow *> *orderedWindows;


Only windows that are typically scriptable are included in the array. For example, panels are not included. This property is accessed during script command evaluation—for example, while finding the window in the script statement close the second window. For information on how your app can return its own array of ordered windows, see application:delegateHandlesKey:.

See Also

Scripting Your App


An array of document objects arranged according to the front-to-back ordering of their associated windows.