---
title: "panel:shouldShowFilename:"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/panel:shouldshowfilename:"
---

# panel:shouldShowFilename:

Gives the delegate the opportunity to filter items that it doesn’t want the user to choose.

## Declaration

```occ
- (BOOL) panel:(id) sender shouldShowFilename:(NSString *) filename;
```

## Parameters

- `sender`: Panel that is querying whether it should show a certain file.
- `filename`: String representing the name of the file to be loaded in the browser.

## Return Value

Return Value YES if filename should be selectable, and NO if the save panel should disable the file or directory.

## Discussion

Discussion The NSSavePanel object sender sends this message to the panel’s delegate for each file or directory (filename) it is about to load in the browser.

## See Also

### Related Documentation

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