Contents

enumerateWindows(options:using:)

Executes a block for each of the app’s windows.

Declaration

func enumerateWindows(options: NSApplication.WindowListOptions = [], using block: (NSWindow, UnsafeMutablePointer<ObjCBool>) -> Void)

Parameters

  • options:

    A constant that indicates window ordering. See Windowlistoptions for possible values.

  • block:

    The block to execute for each window. The block takes the following parameters:

    window

    The window for which to execute the block.

    stop

    A Boolean value that stops the enumeration early when set to True (the default value is False).

See Also

Managing App Windows