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

# panel(_:displayNameFor:)

NSSavePanel: Optional — Sent when the content type popup is displayed and the save panel needs the display name for a type. If nil is returned, the save panel will display type’s localizedDescription. NSOpenPanel: Not sent.

## Declaration

```swift
@MainActor optional func panel(_ sender: Any, displayNameFor type: UTType) -> String?
```
