<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nsapplication-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

[`func activate(ignoringOtherApps: Bool)`](/documentation/AppKit/NSApplication/activate(ignoringOtherApps:))

Makes the receiver the active app.

[`- (NSModalSession) beginModalSessionForWindow:(NSWindow *) window relativeToWindow:(NSWindow *) docWindow;`](/documentation/AppKit/NSApplication/beginModalSessionForWindow:relativeToWindow:)

[`- (NSInteger) runModalForWindow:(NSWindow *) window relativeToWindow:(NSWindow *) docWindow;`](/documentation/AppKit/NSApplication/runModalForWindow:relativeToWindow:)

[`func endModalSession(NSApplication.ModalSession)`](/documentation/AppKit/NSApplication/endModalSession(_:))

Finishes a modal session.

[`func beginSheet(NSWindow, modalFor: NSWindow, modalDelegate: Any?, didEnd: Selector?, contextInfo: UnsafeMutableRawPointer!)`](/documentation/AppKit/NSApplication/beginSheet(_:modalFor:modalDelegate:didEnd:contextInfo:))

Starts a document modal session.

[`func endSheet(NSWindow)`](/documentation/AppKit/NSApplication/endSheet(_:))

Ends a document modal session by specifying the sheet window.

[`func endSheet(NSWindow, returnCode: Int)`](/documentation/AppKit/NSApplication/endSheet(_:returnCode:))

Ends a document modal session by specifying the sheet window.

[`- (void) application:(NSApplication *) sender printFiles:(NSArray<NSString *> *) filenames;`](/documentation/AppKit/NSApplication/application:printFiles:)

Use the delegate method [`application(_:printFiles:withSettings:showPrintPanels:)`](/documentation/AppKit/NSApplicationDelegate/application(_:printFiles:withSettings:showPrintPanels:)) instead.

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/application:delegateHandlesKey:>



---

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)