Re: Inconsistent fullscreen modes
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