windowDidFailToEnterFullScreen(_:)
Called if the window failed to enter full-screen mode.
Declaration
@MainActor optional func windowDidFailToEnterFullScreen(_ window: NSWindow)Parameters
- window:
The window that failed to enter to full-screen mode.
Discussion
In some cases, the transition to enter full-screen mode can fail, due to being in the midst of handling some other animation or user gesture. This method indicates that there was an error, and you should clean up any work you may have done to prepare to enter full-screen mode.
This message is sent whether or not the delegate indicated a custom animation by returning non-nil from customWindowsToEnterFullScreen(for:).
See Also
Custom Full-Screen Presentation Animations
customWindowsToEnterFullScreen(for:)customWindowsToEnterFullScreen(for:on:)window(_:startCustomAnimationToEnterFullScreenWithDuration:)window(_:startCustomAnimationToEnterFullScreenOn:withDuration:)customWindowsToExitFullScreen(for:)window(_:startCustomAnimationToExitFullScreenWithDuration:)windowDidFailToExitFullScreen(_:)