标签: cocoa memory-management automatic-ref-counting exc-bad-access nszombie
我有一个模态窗口,在销毁时会导致问题。我学会了如何使用僵尸,我得到了这个错误消息:-[NSWindow _restoreLevelAfterRunningModal]: message sent to deallocated instance 0x6000001f9500列出的地址是我用于模态对话框的NSWindow的地址,我放弃了范围,因为它从未再次使用过。最令人困惑的是我在Apple的文档中找不到restoreLevelAfterRunningModal。我顺便使用ARC。
-[NSWindow _restoreLevelAfterRunningModal]: message sent to deallocated instance 0x6000001f9500