2015-02-02 2 views
8

나는 어떤 시점에서 등CGSUpdateManager 란 무엇이며 왜 불만입니까?

, 중첩 된 NSSplitViewControllers, NSTabViewControllers의 전체 무리를 통해 내 데이터를 탐색하려고, 내 사용자 인터페이스 일하고 또는 다른 나는 이러한 오류 경고를 얻을. 나는 그들이 어디서오고 어디에서 보는지 전혀 모른다. 응용 프로그램이 잘 작동하는 것 같습니다.

CGSUpdateManager 란 무엇이며 왜 불만입니까?

void CGSUpdateManager::log() const: conn 0xdbbb token 0x2ffffffffffdc78 Backtrace (at 5543.57): 
void CGSUpdateManager::log() const: 0 CoreGraphics      0x00007fff85db9215 CGSBacktraceCreate + 59 
void CGSUpdateManager::log() const: 1 CoreGraphics      0x00007fff85dd8688 _ZN16CGSUpdateManager14disable_updateEv + 84 
void CGSUpdateManager::log() const: 2 AppKit        0x00007fff897f3de5 -[NSWindow disableScreenUpdatesUntilFlush] + 127 
void CGSUpdateManager::log() const: 3 AppKit        0x00007fff897b3250 -[NSView _gainedLayerTreeHostAncestor] + 385 
void CGSUpdateManager::log() const: 4 AppKit        0x00007fff897b30ae -[NSView _recursiveGainedLayerTreeHostAncestor] + 27 
void CGSUpdateManager::log() const: 5 AppKit        0x00007fff897b767a -[NSScroller _recursiveGainedLayerTreeHostAncestor] + 103 
void CGSUpdateManager::log() const: 6 AppKit        0x00007fff89a1ea56 -[NSScroller _setSurfaceBacked:] + 213 
void CGSUpdateManager::log() const: 7 AppKit        0x00007fff8998424f -[NSScrollView setScrollerStyle:] + 304 
void CGSUpdateManager::log() const: 8 AppKit        0x00007fff8a01bf27 +[NSScrollerImpPair _updateAllScrollerImpPairsForNewRecommendedScrollerStyle:] + 426 
void CGSUpdateManager::log() const: 9 CoreFoundation       0x00007fff914b5cbc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 
void CGSUpdateManager::log() const: 10 CoreFoundation      0x00007fff913a71b4 _CFXNotificationPost + 3140 
void CGSUpdateManager::log() const: 11 Foundation       0x00007fff917feea1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 
void CGSUpdateManager::log() const: 12 CoreFoundation      0x00007fff9141754c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12 
void CGSUpdateManager::log() const: 13 CoreFoundation      0x00007fff91409655 __CFRunLoopDoBlocks + 341 
void CGSUpdateManager::log() const: 14 CoreFoundation      0x00007fff91409196 __CFRunLoopRun + 1814 
void CGSUpdateManager::log() const: 15 CoreFoundation      0x00007fff91408838 CFRunLoopRunSpecific + 296 
void CGSUpdateManager::log() const: 16 HIToolbox       0x00007fff8f30743f RunCurrentEventLoopInMode + 235 
void CGSUpdateManager::log() const: 17 HIToolbox        0x00007fff8f3071ba ReceiveNextEventCommon + 431 
void CGSUpdateManager::log() const: 18 HIToolbox       0x00007fff8f306ffb _BlockUntilNextEventMatchingListInModeWithFilter + 71 
void CGSUpdateManager::log() const: 19 AppKit        0x00007fff897376d1 _DPSNextEvent + 964 
void CGSUpdateManager::log() const: 20 AppKit        0x00007fff89736e80 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194 
void CGSUpdateManager::log() const: 21 AppKit        0x00007fff8972ae23 -[NSApplication run] + 594 
void CGSUpdateManager::log() const: 22 AppKit        0x00007fff897162d4 NSApplicationMain + 1832 
void CGSUpdateManager::log() const: 23 Well        0x0000000100019422 top_level_code + 34 
void CGSUpdateManager::log() const: 24 Well        0x000000010001945a main + 42 
void CGSUpdateManager::log() const: 25 libdyld.dylib      0x00007fff85b7b5c9 start + 1 
+0

같은 것이 있습니다. 요세미티로 업그레이드 한 이후로 내 앱에서 이러한 메시지가 표시되는 것을 발견했습니다. 봐야할지 모르겠다. 그 외에도 모든 것이 잘 돌아가고있는 것처럼 보입니다. 사용중인 OS X의 버전은 무엇입니까? – insys

+0

요세미티 10.10.1 – user965972

+0

인시 스 (superys). 번영을위한 해답으로 만들었습니다. – user965972

답변

0

viewDidLoad, viewWillAppear 및 viewWillDisappear에서 super를 호출해야합니다.

+1

이러한 수퍼 메소드는 uikit에만 적용됩니다. 질문은 분명 appkit입니다. – johndpope

+0

대부분 NSViewController에 정의되어 있습니다. – user965972

1

나는 엘 캐피 탄으로 업그레이드했을 때 같은 문제가 발생하기 시작했다.

나는 결국 내가에 길 잃은 호출했다 ... 전에 문제가 발생하지 않은 내 코드베이스의 깊은 뭔가를 아래로 추적이 이전에 문제가있다

[NSGraphicsContext restoreCurrentContext]; 

을 ... 할 이러한 호출의 균형을 유지하십시오 ... 특히 일찍 돌아 오는 함수에서!

[NSGraphicsContext saveCurrentContext]; 
[NSGraphicsContext restoreCurrentContext]; 

CGContextSaveGState (ctx); CGContextRestoreGState()

관련 문제