It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                        
                    
                
            
                已关闭8年。
        

    

有什么办法可以在雪豹中以全屏模式打开nsview吗?

最佳答案

这样的事情应该为您工作-

- (IBAction)enterFullScreen:(id)sender
{
    NSDictionary *fullScreenOptions = [[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:1] forKey:NSFullScreenModeAllScreens] retain];
    BOOL fullScreenEnteredFlag = [fullScreenView enterFullScreenMode:[NSScreen mainScreen] withOptions:fullScreenOptions];
}

10-08 05:55