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

### Classes

[`class NSOpenGLView`](/documentation/AppKit/NSOpenGLView)

A view that displays OpenGL content in a view.

[`class NSOpenGLContext`](/documentation/AppKit/NSOpenGLContext)

An object that represents an OpenGL graphics context, into which all OpenGL calls are rendered.

[`class NSOpenGLLayer`](/documentation/AppKit/NSOpenGLLayer)

A subclass of `CAOpenGLLayer` that is suitable for rendering OpenGL into layers.

[`@interface NSOpenGLPixelBuffer : NSObject`](/documentation/AppKit/NSOpenGLPixelBuffer)

An object that provides access to accelerated offscreen rendering.

[`class NSOpenGLPixelFormat`](/documentation/AppKit/NSOpenGLPixelFormat)

An object that specifies the types of buffers and other attributes of the OpenGL context.

[`@interface NSCachedImageRep : NSImageRep`](/documentation/AppKit/NSCachedImageRep)

An object that stores image data in a form that can be readily transferred to the screen.

[`class NSDrawer`](/documentation/AppKit/NSDrawer)

A user interface element that contains and displays text, scroll, and browser views, in addition to other view subclasses.

[`class NSForm`](/documentation/AppKit/NSForm)

An `NSForm` object is a vertical matrix of [`NSFormCell`](/documentation/AppKit/NSFormCell) objects to implement the fields.

[`class NSFormCell`](/documentation/AppKit/NSFormCell)

The `NSFormCell` class is used to implement text entry fields in a form. The left part of an `NSFormCell` object contains a title. The right part contains an editable text entry field.

[`class NSMenuItemCell`](/documentation/AppKit/NSMenuItemCell)

An object that handles the measurement and display of a single menu item in its encompassing frame.

[`@interface NSInputManager : NSObject`](/documentation/AppKit/NSInputManager)

[`@interface NSInputServer : NSObject`](/documentation/AppKit/NSInputServer)

[`@interface NSMovie : NSObject`](/documentation/AppKit/NSMovie)

### Protocols

[NSAccessibility](/documentation/AppKit/nsaccessibility)

A legacy, informal protocol that Apple doesn’t recommend for active use.

[NSEditor](/documentation/AppKit/nseditor-deprecated-symbols)

A set of methods that controllers and UI elements can implement to manage editing.

[`protocol NSEditorRegistration`](/documentation/AppKit/NSEditorRegistration)

A set of methods that controllers can implement to enable an editor view to inform the controller when it has uncommitted changes.

[`protocol NSInputServiceProvider`](/documentation/AppKit/NSInputServiceProvider)

[`protocol NSInputServerMouseTracker`](/documentation/AppKit/NSInputServerMouseTracker)

[`protocol NSDrawerDelegate`](/documentation/AppKit/NSDrawerDelegate)

A set of methods that drawer delegates implement to open, close, and resize the drawer.

### Functions

[`func NSConvertGlyphsToPackedGlyphs(UnsafeMutablePointer<NSGlyph>, Int, NSMultibyteGlyphPacking, UnsafeMutablePointer<CChar>) -> Int`](/documentation/AppKit/NSConvertGlyphsToPackedGlyphs(_:_:_:_:))

Prepares a set of glyphs for processing by character-based routines.

[`extern void NSOpenGLGetOption(NSOpenGLGlobalOption pname, GLint *param);`](/documentation/AppKit/NSOpenGLGetOption)

Returns global OpenGL options.

[`extern void NSOpenGLGetVersion(GLint *major, GLint *minor);`](/documentation/AppKit/NSOpenGLGetVersion)

Returns the NSOpenGL version numbers.

[`extern void NSOpenGLSetOption(NSOpenGLGlobalOption pname, GLint param);`](/documentation/AppKit/NSOpenGLSetOption)

Sets global OpenGL options.

[`static func raiseBadArgumentException(Any!, NSAccessibility.Attribute!, Any!)`](/documentation/AppKit/NSAccessibility-swift.struct/raiseBadArgumentException(_:_:_:))

Raises an error if the parameter is the wrong type or has an illegal value

[`extern void NSBeginAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msgFormat, ...);`](/documentation/AppKit/NSBeginAlertSheet)

Creates and runs an alert sheet.

[`extern void NSBeginCriticalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msgFormat, ...);`](/documentation/AppKit/NSBeginCriticalAlertSheet)

Creates and runs a critical alert sheet.

[`extern void NSBeginInformationalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msgFormat, ...);`](/documentation/AppKit/NSBeginInformationalAlertSheet)

Creates and runs an informational alert sheet.

[`extern idNSGetAlertPanel(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);`](/documentation/AppKit/NSGetAlertPanel)

Returns an alert panel.

[`extern idNSGetCriticalAlertPanel(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);`](/documentation/AppKit/NSGetCriticalAlertPanel)

Returns an alert panel to display a critical message.

[`extern idNSGetInformationalAlertPanel(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);`](/documentation/AppKit/NSGetInformationalAlertPanel)

Returns an alert panel to display an informational message.

[`func NSReleaseAlertPanel(Any!)`](/documentation/AppKit/NSReleaseAlertPanel(_:))

Disposes of an alert panel.

[`extern NSInteger NSRunAlertPanel(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);`](/documentation/AppKit/NSRunAlertPanel)

Creates an alert panel.

[`extern NSInteger NSRunCriticalAlertPanel(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);`](/documentation/AppKit/NSRunCriticalAlertPanel)

Creates and runs a critical alert panel.

[`extern NSInteger NSRunInformationalAlertPanel(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);`](/documentation/AppKit/NSRunInformationalAlertPanel)

Creates and runs an informational alert panel.

[`extern NSInteger NSRunAlertPanelRelativeToWindow(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...);`](/documentation/AppKit/NSRunAlertPanelRelativeToWindow)

[`extern NSInteger NSRunCriticalAlertPanelRelativeToWindow(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...);`](/documentation/AppKit/NSRunCriticalAlertPanelRelativeToWindow)

[`extern NSInteger NSRunInformationalAlertPanelRelativeToWindow(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...);`](/documentation/AppKit/NSRunInformationalAlertPanelRelativeToWindow)

[`func NSDisableScreenUpdates()`](/documentation/AppKit/NSDisableScreenUpdates())

Disables screen updates.

[`func NSEnableScreenUpdates()`](/documentation/AppKit/NSEnableScreenUpdates())

Enables screen updates.

[`func NSDrawColorTiledRects(NSRect, NSRect, UnsafePointer<NSRectEdge>, AutoreleasingUnsafeMutablePointer<NSColor>, Int) -> NSRect`](/documentation/AppKit/NSDrawColorTiledRects(_:_:_:_:_:))

Draws a single-color, bordered rectangle.

[`extern NSInterfaceStyle NSInterfaceStyleForKey(NSString *key, NSResponder *responder);`](/documentation/AppKit/NSInterfaceStyleForKey)

Returns an interface style value for the specified key and responder.

[`func NSSetShowsServicesMenuItem(String, Bool) -> Int`](/documentation/AppKit/NSSetShowsServicesMenuItem(_:_:))

Specifies whether an item should be included in Services menus.

[`func NSCopyBits(Int, NSRect, NSPoint)`](/documentation/AppKit/NSCopyBits(_:_:_:))

Copies a bitmap image to the location specified by a destination point.

[`extern void NSCountWindows(NSInteger *count);`](/documentation/AppKit/NSCountWindows)

Counts the number of onscreen windows.

[`extern void NSCountWindowsForContext(NSInteger context, NSInteger *count);`](/documentation/AppKit/NSCountWindowsForContext)

Counts the number of onscreen windows belonging to a particular application.

[`func NSShowsServicesMenuItem(String) -> Bool`](/documentation/AppKit/NSShowsServicesMenuItem(_:))

Specifies whether a Services menu item is currently enabled.

[`func NSDottedFrameRect(NSRect)`](/documentation/AppKit/NSDottedFrameRect(_:))

Draws a bordered rectangle.

[`extern void NSWindowList(NSInteger size, NSInteger list[]);`](/documentation/AppKit/NSWindowList)

Gets information about onscreen windows.

[`extern void NSWindowListForContext(NSInteger context, NSInteger size, NSInteger list[]);`](/documentation/AppKit/NSWindowListForContext)

Gets information about an application’s onscreen windows.

[`func NSReadPixel(NSPoint) -> NSColor?`](/documentation/AppKit/NSReadPixel(_:))

Reads the color of the pixel at the specified location.

[`func NSGetWindowServerMemory(Int, UnsafeMutablePointer<Int>, UnsafeMutablePointer<Int>, AutoreleasingUnsafeMutablePointer<NSString>) -> Int`](/documentation/AppKit/NSGetWindowServerMemory(_:_:_:_:))

Returns the amount of memory being used by a context.

[`static func fileContentsType(forPathExtension: String) -> NSPasteboard.PasteboardType!`](/documentation/AppKit/NSPasteboard/PasteboardType/fileContentsType(forPathExtension:))

Returns a pasteboard type based on the passed file type.

[`static func fileNameType(forPathExtension: String) -> NSPasteboard.PasteboardType!`](/documentation/AppKit/NSPasteboard/PasteboardType/fileNameType(forPathExtension:))

Returns a pasteboard type based on the passed file type.

[`var representedPathExtension: String?`](/documentation/AppKit/NSPasteboard/PasteboardType/representedPathExtension)

A file type based on the passed pasteboard type.

[`static func representedPathExtensions(from: [NSPasteboard.PasteboardType]) -> [String]?`](/documentation/AppKit/NSPasteboard/PasteboardType/representedPathExtensions(from:))

Returns an array of file types based on the passed pasteboard types.

### Enumerations

[`enum NSMultibyteGlyphPacking`](/documentation/AppKit/NSMultibyteGlyphPacking)

A constant for glyph packing.

[Glyph Attributes](/documentation/AppKit/glyph-attributes)

Attributes that are used only inside the glyph generation machinery, but must also be shared between components.

[`enum NSOpenGLGlobalOption`](/documentation/AppKit/NSOpenGLGlobalOption)

Constants that specify OpenGL options.

[`typedef NSUInteger NSInterfaceStyle;`](/documentation/AppKit/NSInterfaceStyle)

These constants are used in `NSResponder`’s [`interfaceStyle`](/documentation/AppKit/NSResponder/interfaceStyle) method.

[`NSNoUnderlineStyle`](/documentation/AppKit/NSNoUnderlineStyle)

[`NSSingleUnderlineStyle`](/documentation/AppKit/NSSingleUnderlineStyle)

[Data Entry Types](/documentation/AppKit/data-entry-types)

These constants specify how a cell formats numeric data.

[Anonymous](/documentation/AppKit/nsbuttontypes-anonymous)

[Additional Writing Directions](/documentation/AppKit/additional-writing-directions)

Constants that specify additional options when setting the writing direction of attributed strings.

[Return values for modal operations](/documentation/AppKit/return-values-for-modal-operations)

Historical return values for [`runModal(for:)`](/documentation/AppKit/NSApplication/runModal(for:)) and [`runModalSession(_:)`](/documentation/AppKit/NSApplication/runModalSession(_:)).

[Tags of Views in the FontPanel](/documentation/AppKit/tags-of-views-in-the-fontpanel)

These constants are obsolete and should not be used.

### Constants

[`extern NSAccessibilityRole const NSAccessibilitySortButtonRole;`](/documentation/AppKit/NSAccessibilitySortButtonRole)

The sort button role.

[`extern NSUInteger NSUnderlineStrikethroughMask;`](/documentation/AppKit/NSUnderlineStrikethroughMask)

[`extern NSColorSpaceName NSCalibratedBlackColorSpace;`](/documentation/AppKit/NSCalibratedBlackColorSpace)

Calibrated color space with black and alpha components (pure black is 1.0)

[`extern NSColorSpaceName NSDeviceBlackColorSpace;`](/documentation/AppKit/NSDeviceBlackColorSpace)

Device-dependent color space with black and alpha components (pure black is 1.0)

[`extern NSString * const NSPrintSavePath;`](/documentation/AppKit/NSPrintSavePath)

An `NSString` object that specifies the pathname to which the job file will be saved when the [`jobDisposition`](/documentation/AppKit/NSPrintInfo/jobDisposition-swift.property) is [`save`](/documentation/AppKit/NSPrintInfo/JobDisposition-swift.struct/save)..



---

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)