Instance Property

orderedWindows

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

Declaration

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

Discussion

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

orderedDocuments

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

- application:delegateHandlesKey:

Sent by Cocoa’s built-in scripting support during execution of get or set script commands to find out if the delegate can handle operations on the specified key-value key.

Deprecated