什么是restoreLevelAfterRunningModal,为什么它被发送到我被毁坏的NSWindow?

时间:2014-02-14 21:00:47

标签: cocoa memory-management automatic-ref-counting exc-bad-access nszombie

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

0 个答案:

没有答案