Instance Method

window:startCustomAnimationToEnterFullScreenWithDuration:

This method is called to start the window animation into full-screen mode, including transitioning to a new space.

Declaration

- (void)window:(NSWindow *)window startCustomAnimationToEnterFullScreenWithDuration:(NSTimeInterval)duration;

Parameters

window

The window to enter full-screen mode.

duration

The duration of the presentation change.

Discussion

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: returns non-nil.

See Also

Custom Full-Screen Presentation Animations

- customWindowsToEnterFullScreenForWindow:

Called when the window is about to enter full-screen mode.

- customWindowsToEnterFullScreenForWindow:onScreen:

Called when the window is about to enter full-screen mode.

- window:startCustomAnimationToEnterFullScreenOnScreen:withDuration:

This method is called to start the window animation into full-screen mode, including transitioning to a new space.

- windowDidFailToEnterFullScreen:

Called if the window failed to enter full-screen mode.

- customWindowsToExitFullScreenForWindow:

Called when the window is about to exit full-screen mode.

- window:startCustomAnimationToExitFullScreenWithDuration:

This method is called to start the window animation out of full-screen mode, including transitioning back to the desktop space.

- windowDidFailToExitFullScreen:

Called if the window failed to exit full-screen mode.