I use a strong IBOutlet for a custom PDFView in the NSViewController subclass, but I get a 10.11 crash after switching the view controller. Everything works fine 10,8,10,9 and 10,10. I am using ARC.
self.activeRootViewController = controller; self.backgroundWindow.contentView = controller.view; @property (strong) IBOutlet MYPDFView* pdfView;
The MYPDFView 0x10ac1bc50 is overridden, but is already freed; break on objc_overrelease_during_dealloc_error for debugging
I added a breakpoint to objc_overrelease_during_dealloc_error , but could not solve this problem.
Can anyone help me out?
dealloc method MYPDFView is called only once.
Backtrace from lldb:
objc[23395]: MYPDFView object 0x10ac1bc50 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug Process 23395 stopped * thread
source share