Inconsistent fullscreen modes
Inconsistent fullscreen modes
- Subject: Inconsistent fullscreen modes
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Fri, 1 May 2020 20:34:42 +0200
In my app, I defined a key that switches the window/view to fullscreen mode and
back.
Essentially, I use these commands:
[self enterFullScreenMode: [NSScreen mainScreen] withOptions: nil];
and
[self exitFullScreenModeWithOptions: nil];
where self is an NSView.
This seems to work.
The user also can switch to fullscreen by clicking the green window button,
which also works, out of the box.
What does not work is that both kinds of fullscreen mode seem to be different
things.
In particular, when the user clicked the green button,
then exitFullScreenModeWithOptions does not work any more.
Also, when my app entered fullscreen using enterFullScreenMode,
then I can't get the window bar (with red, yellow, and green buttons),
which you usually can bring up by moving the mouse to the screen's top border.
Is there a way to switch programmatically to fullscreen (and back) by the app,
and still get the same behavior as if the user clicked the green window button?
All kinds of insights and hints will be highly appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden