• 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
Re: Inconsistent fullscreen modes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistent fullscreen modes


  • Subject: Re: Inconsistent fullscreen modes
  • From: Richard Charles via Cocoa-dev <email@hidden>
  • Date: Fri, 1 May 2020 13:32:14 -0600

> On May 1, 2020, at 12:34 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> 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?


Something like this should work.

NSButton *button = [self.window standardWindowButton:NSWindowZoomButton];
NSCell *cell = button.cell;
[cell.target performSelector:cell.action];

Where self is the NSView object.

--Richard Charles

_______________________________________________

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: Gabriel Zachmann via Cocoa-dev <email@hidden>
References: 
 >Inconsistent fullscreen modes (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Inconsistent fullscreen modes
  • Next by Date: Re: Inconsistent fullscreen modes
  • Previous by thread: Inconsistent fullscreen modes
  • Next by thread: Re: Inconsistent fullscreen modes
  • Index(es):
    • Date
    • Thread