Disposes of an alert panel.
Deprecated
Use NSAlert
instead.
SDK
- macOS 10.0–10.10Deprecated
Framework
- App
Kit
Declaration
func NSReleaseAlertPanel(_ panel: Any!)
Discussion
When you’re finished with a panel created by a function such as NSGet
, NSGet
, or NSGet
, 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.