在NSViewController 里面
- (void)viewWillAppear
{
[super viewWillAppear];
self.view.window.restorable = NO;
[self.view.window setContentSize:NSMakeSize(800, 600)];
}
在NSViewController 里面
- (void)viewWillAppear
{
[super viewWillAppear];
self.view.window.restorable = NO;
[self.view.window setContentSize:NSMakeSize(800, 600)];
}
本文标题:Mac App 设置窗口大小
本文链接:https://www.haomeiwen.com/subject/cjucfqtx.html
网友评论