---
title: "panel(_:shouldEnable:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsopensavepaneldelegate/panel(_:shouldenable:)"
---

# panel(_:shouldEnable:)

Asks the delegate whether the specified URL should be enabled in the Open panel.

## Declaration

```swift
@MainActor optional func panel(_ sender: Any, shouldEnable url: URL) -> Bool
```

## Parameters

- `sender`: The panel that asks whether the URL should be enabled.
- `url`: The URL for you to check.

## Return Value

Return Value true if you want the panel to display the item at the specifed URL as enabled, or false to display it as disabled.

## Discussion

Discussion Save panels do not call this method; they always disable URLs. Implementations of this method should be fast to avoid stalling the user interface. Use panel(_:validate:) instead if processing will take a long time.

## See Also

### Validating the Panel Content

- [panel(_:validate:)](appkit/nsopensavepaneldelegate/panel(_:validate:).md)
