Contents

removeWindowsItem(_:)

Removes the Window menu item for a given window.

Declaration

func removeWindowsItem(_ win: NSWindow)

Parameters

  • win:

    The window whose menu item is to be removed.

Discussion

This method doesn’t prevent the item from being automatically added again. Use the isExcludedFromWindowsMenu method of NSWindow if you want the item to remain excluded from the Window menu.

See Also

Managing the Window Menu