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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com