2011-11-12 3 views
0

스노우 레오파드에서 전체 화면으로 nsview를 전환 할 수있는 방법이 있습니까? 이 같은코코아 : 스노우 레오파드 전체 화면 nsview

+2

당신이 문서 검색 한 적이있다? NSView 클래스 레퍼런스를 살펴보십시오. 그것은 전체 화면 모드에 섹션이 있습니다. – sidyll

+2

예, google – rafa

+0

@rafa 그런 다음 "전체 화면"과 동일한 결과가 표시된다고 가정 할 것입니다. 무엇이 효과가 없었습니까? –

답변

2

무언가가 당신을 위해 일한다 -

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

NSView의 다음과 같은 방법

– enterFullScreenMode:withOptions: 
– exitFullScreenModeWithOptions: 
– isInFullScreenMode 
관련 문제