Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSWindowDelegateMBS class.

NSWindowDelegateMBS.customWindowsToEnterFullScreenForWindow(win as NSWindowMBS) as NSWindowMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
Invoked when the window is about to enter full screen mode.

win: The window to enter to full screen mode.

Return an array of windows involved in the animation to fullscreen for window; otherwise nil.

This method lets a window delegate to customize the animation by providing a custom window or windows containing layers or other effects. If you do not want to perform custom animation, you can omit the implementation of this method, or it can return nil.

Available in Mac OS X v10.7 and later.

NSWindowDelegateMBS.customWindowsToExitFullScreenForWindow(win as NSWindowMBS) as NSWindowMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
The system has started its animation out of fullscreen, including transitioning back to the desktop space.

win: The window to exit fullscreen.

Return true if the window wants to run a custom animation; otherwise false if the default NSWindow animation should be used.

This method lets the window delegate customize the animation when the window is about to exit fullscreen. If an you do not want to perform custom animation, you can omit the implementation of this method, or it can return nil.

Available in Mac OS X v10.7 and later.

NSWindowDelegateMBS.startCustomAnimationToEnterFullScreenWithDuration(win as NSWindowMBS, duration as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
Invoked when the window is about to enter fullscreen mode.

win: The window to enter to full screen mode.
duration: The duration of the presentation change.

This method is called to start the window animation into fullscreen, including transitioning to a new space. You can implement this method to perform custom animation with the given duration to be in sync with the system animation.

Special Considerations
This method is called only if customWindowsToEnterFullScreenForWindow returned non-nil.

Available in Mac OS X v10.7 and later.

NSWindowDelegateMBS.startCustomAnimationToExitFullScreenWithDuration(win as NSWindowMBS, duration as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
Informs the delegate that the window is about to enter fullscreen mode.

win: The window to exit to fullscreen.
duration: The duration of the presentation change.

Special Considerations
This method is called only if customWindowsToExitFullScreenForWindow returned non-nil.

Available in Mac OS X v10.7 and later.

NSWindowDelegateMBS.willUseFullScreenContentSize(win as NSWindowMBS, proposedSize as NSSizeMBS) as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
Invoked to allow the delegate to modify the fullscreen content size.

win: The window to enter to full screen mode.
proposedSize: The proposed window size.

Returns the window size to actually use when displaying content size.

Available in Mac OS X v10.7 and later.

NSWindowDelegateMBS.willUseFullScreenPresentationOptions(win as NSWindowMBS, proposedOptions as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
Returns the presentation options the window will use when transitioning to fullscreen.

win: The window to enter to full screen mode.
proposedOptions: The proposed options. See NSApplicationPresentationOptions for the possible values.

Return the options the window should use when transitioning to fullscreen. These may be the same as the proposedOptions or may be modified.

Available in Mac OS X v10.7 and later.

NSWindowDelegateMBS.windowDidEnterFullScreen(notification as NSNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
The window just entered fullscreen mode.

notification: A notification named NSWindowDidEnterFullScreenNotification.
Available in Mac OS X v10.7 and later.

Some examples using this event:

NSWindowDelegateMBS.windowDidExitFullScreen(notification as NSNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
The window is about to enter fullscreen mode.

notification: A notification named NSWindowDidExitFullScreenNotification.
Available in Mac OS X v10.7 and later.

Some examples using this event:

NSWindowDelegateMBS.windowDidFailToEnterFullScreen(win as NSWindowMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
Invoked if the window failed to enter fullscreen.

win: The window that failed to enter to full screen mode.

In some cases, the transition to enter fullscreen will 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 fullscreen.

This message is sent whether or not the delegate indicated a custom animation by returning non-nil from customWindowsToEnterFullScreenForWindow.

Available in Mac OS X v10.7 and later.

Some examples using this event:

NSWindowDelegateMBS.windowDidFailToExitFullScreen(win as NSWindowMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
Invoked if the window failed to exit fullscreen.

win: The window that failed to exit to fullscreen.

In some cases, the transition to exit fullscreen will 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 fullscreen.

This message is sent whether or not the delegate indicated a custom animation by returning non-nil from customWindowsToExitFullScreenForWindow.

Available in Mac OS X v10.7 and later.

Some examples using this event:

NSWindowDelegateMBS.windowWillEnterFullScreen(notification as NSNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
The window is about to enter fullscreen mode.

notification: A notification named NSWindowWillEnterFullScreenNotification.

Available in Mac OS X v10.7 and later.

Some examples using this event:

NSWindowDelegateMBS.windowWillExitFullScreen(notification as NSNotificationMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No
The window is about to exit fullscreen mode.

notification: A notification named NSWindowWillExitFullScreenNotification.
Available in Mac OS X v10.7 and later.

Some examples using this event:

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...