• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Inconsistent fullscreen modes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Inconsistent fullscreen modes
      • From: Richard Charles via Cocoa-dev <email@hidden>
  • Next by Date: Re: Inconsistent fullscreen modes
  • Next by thread: Re: Inconsistent fullscreen modes
  • Index(es):
    • Date
    • Thread