Contents

NSReleaseAlertPanel(_:)

Disposes of an alert panel.

Declaration

func NSReleaseAlertPanel(_ panel: Any!)

Discussion

When you’re finished with a panel created by a function such as NSGetAlertPanel, NSGetCriticalAlertPanel, or NSGetInformationalAlertPanel, you must dispose of it by passing it to this function.

Note that the alert panel may not be deallocated immediately because it may have internal references that are disposed of in a deferred way. You should not make the assumption that the alert panel is immediately removed from the application window list.

See Also

Functions