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

# Deprecated Symbols

Review symbols that are no longer supported, and find the replacements to use instead.

## Topics

### Methods

[`- (NSArray *) filenames;`](/documentation/AppKit/NSOpenPanel/filenames)

Returns an array containing the absolute paths (as NSString objects) of the selected files and directories.

[`- (void) beginForDirectory:(NSString *) path file:(NSString *) name types:(NSArray *) fileTypes modelessDelegate:(id) delegate didEndSelector:(SEL) didEndSelector contextInfo:(void *) contextInfo;`](/documentation/AppKit/NSOpenPanel/beginForDirectory:file:types:modelessDelegate:didEndSelector:contextInfo:)

Presents a modeless Open panel.

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

Presents an Open panel as a sheet with the directory specified by `absoluteDirectoryPath` and optionally the file specified by `filename` selected.

[`- (NSInteger) runModalForDirectory:(NSString *) path file:(NSString *) name types:(NSArray *) fileTypes;`](/documentation/AppKit/NSOpenPanel/runModalForDirectory:file:types:)

Displays the panel and begins a modal event loop that is terminated when the user clicks either OK or Cancel.

[`- (NSInteger) runModalForTypes:(NSArray *) fileTypes;`](/documentation/AppKit/NSOpenPanel/runModalForTypes:)

Displays the panel and begins a modal event loop that is terminated when the user clicks either OK or Cancel.



---

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)