<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nssavepanel-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated Symbols"
}
-->

# Deprecated Symbols

Review unsupported symbols and their replacements.

## Topics

### Methods

[`var allowedFileTypes: [String]?`](/documentation/AppKit/NSSavePanel/allowedFileTypes)

An array of filename extensions or UTIs that represent the allowed file types for the panel.

[`- (NSString *) requiredFileType;`](/documentation/AppKit/NSSavePanel/requiredFileType)

Returns the required file type (if any).

[`- (void) setRequiredFileType:(NSString *) type;`](/documentation/AppKit/NSSavePanel/setRequiredFileType:)

Specifies the file type (as an extension) or a UTI.

[`- (void) setDirectory:(NSString *) path;`](/documentation/AppKit/NSSavePanel/setDirectory:)

Sets the current pathname in the panel’s browser.

[`- (void) beginSheetForDirectory:(NSString *) path file:(NSString *) name modalForWindow:(NSWindow *) docWindow modalDelegate:(id) delegate didEndSelector:(SEL) didEndSelector contextInfo:(void *) contextInfo;`](/documentation/AppKit/NSSavePanel/beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:)

Presents a Save panel as a sheet with a specified path and, optionally, a specified file in that path.

[`- (NSInteger) runModalForDirectory:(NSString *) path file:(NSString *) name;`](/documentation/AppKit/NSSavePanel/runModalForDirectory:file:)

Initializes the panel to the directory and file specified, if any, then displays it and begins its modal event loop.

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/panel:compareFilename:with:caseSensitive:>

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/panel:isValidFilename:>

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/panel:shouldShowFilename:>

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/panel:directoryDidChange:>

[`- (NSString *) directory;`](/documentation/AppKit/NSSavePanel/directory)

Returns the absolute pathname of the directory currently shown in the panel.

[`- (NSString *) filename;`](/documentation/AppKit/NSSavePanel/filename)

Returns the absolute pathname of the file currently shown in the panel.

[`- (void) selectText:(id) sender;`](/documentation/AppKit/NSSavePanel/selectText:)

This method has been deprecated.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)