hockeyman
hockeyman

Reputation: 1183

How to check if my app is running in full screen mode?

I need to check if my app is running in full screen mode. Because I have button witch slides out panel, and it should be sliced differently when in full screen. How can I check it?

Upvotes: 3

Views: 1465

Answers (1)

MattR
MattR

Reputation: 7048

The window displayed full screen should have NSFullScreenWindowMask set.

See Apple's docs here

For example you could use:

if ([yourwindow styleMask] & NSFullScreenWindowMask) {
  ....it's full screen
}

Upvotes: 8

Related Questions