主页 判断NSWindow是否全屏
Post
Cancel

判断NSWindow是否全屏

1
2
3
4
5
6
7
8
9
10
11
12
13
14
@interface NSWindow (FullScreen)

- (BOOL)mn_isFullScreen;

@end

@implementation NSWindow (FullScreen)

- (BOOL)mn_isFullScreen
{
    return (([self styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask);
}

@end

refs:How to know if a NSWindow is fullscreen in Mac OS X Lion?

该博客文章由作者通过 CC BY 4.0 进行授权。

Learning AV Foundation(二)AVAudioPlayer

Learning AV Foundation(三)AVAudioRecorder