Reputation: 1183
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
Reputation: 7048
The window displayed full screen should have NSFullScreenWindowMask
set.
For example you could use:
if ([yourwindow styleMask] & NSFullScreenWindowMask) {
....it's full screen
}
Upvotes: 8