---
title: "window(_:shouldPopUpDocumentPathMenu:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindowdelegate/window(_:shouldpopupdocumentpathmenu:)"
---

# window(_:shouldPopUpDocumentPathMenu:)

Asks the delegate whether the window displays the title pop-up menu in response to a Command-click or Control-click on its title.

## Declaration

```swift
@MainActor optional func window(_ window: NSWindow, shouldPopUpDocumentPathMenu menu: NSMenu) -> Bool
```

## Parameters

- `window`: The window whose title the user Command-clicked or Control-clicked.
- `menu`: The menu the window will display, if allowed. By default, its items are the path components of the file represented by window.

## Return Value

Return Value true to allow the display of the title pop-up menu; false to prevent it.

## See Also

### Related Documentation

- [representedURL](appkit/nswindow/representedurl.md)
