2015-02-02 22 views
8

tôi đang làm việc trên giao diện người dùng của tôi, cố gắng để di chuyển dữ liệu của mình thông qua một bó toàn bộ NSSplitViewControllers lồng nhau, NSTabViewControllers vvCGSUpdateManager là gì và tại sao nó phàn nàn?

Tại một số điểm hay cách khác tôi nhận được những cảnh báo lỗi. Tôi không biết họ đến từ đâu và thậm chí là ở đâu. Ứng dụng dường như hoạt động tốt.

CGSUpdateManager là gì và tại sao nó phàn nàn?

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

Điều tương tự ở đây. Tìm thấy rằng ứng dụng của tôi đã bắt đầu ném những tin nhắn này kể từ khi tôi nâng cấp lên Yosemite. Không biết phải tìm đâu. Bên cạnh đó, mọi thứ dường như đang chạy tốt. Bạn đang sử dụng phiên bản OS X nào? – insys

+0

Yosemite 10.10.1 – user965972

+0

insys, gọi super. Làm cho nó thành một câu trả lời cho sự thịnh vượng. – user965972

Trả lời

0

Đảm bảo gọi siêu trong chế độ xemDidLoad, viewWillAppear and viewWillDisappear.

+1

các phương pháp siêu cụ thể đó là uikit. câu hỏi rõ ràng là appkit. – johndpope

+0

Hầu hết chúng được định nghĩa trong NSViewController. – user965972

1

Tôi bắt đầu thấy cùng một vấn đề khi tôi nâng cấp lên El Capitan.

tôi cuối cùng đã theo dõi nó xuống một cái gì đó sâu trong codebase của tôi mà không gây ra một vấn đề trước khi ... Tôi đã có một cuộc gọi đi lạc đến:

[NSGraphicsContext restoreCurrentContext]; 

Đây là một vấn đề trước khi ... làm chắc chắn để cân bằng các cuộc gọi này ... đặc biệt là trong các chức năng quay trở lại sớm!

[NSGraphicsContext saveCurrentContext]; 
[NSGraphicsContext restoreCurrentContext]; 

tương tự cho CGContextSaveGState (ctx); CGContextRestoreGState()

Các vấn đề liên quan