makeWindowsPerform(_:inOrder:)
Sends the specified message to each of the app’s window objects until one returns a non-nil value.
Declaration
func makeWindowsPerform(_ selector: Selector, inOrder: Bool) -> NSWindow?Parameters
- selector:
The selector to perform on each window. This method must not take any arguments and must return a value whose type that can be compared to
nil. - inOrder:
If True, the
aSelectormessage is sent to each of the window server’s onscreen windows, going in z-order, until one returns a non-nilvalue. A minimized window is not considered to be onscreen for this check. If False, the message is sent to all windows inNSApp’s window list, regardless of whether or not they are onscreen. This order is unspecified.
Return Value
The window that returned a non-nil value or nil if all windows returned nil from aSelector.