0

此错误仅发生特定时间(在创建新文档后)。如果我保存并重新打开,它可以工作。任何想法?有人有同样的错误吗?

2013-03-23 11:36:52.977 Demiurge[97164:303] *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
2013-03-23 11:36:52.979 Demiurge[97164:303] (
    0   CoreFoundation                      0x00007fff89814b06 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff833c53f0 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff897d91d7 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 119
    3   CoreFoundation                      0x00007fff897e76bb +[NSDictionary dictionaryWithObject:forKey:] + 59
    4   AppKit                              0x00007fff85b428c4 -[NSPopUpButtonCell _menuLocationForEvent:inCellFrame:ofView:] + 581
    5   AppKit                              0x00007fff85b430fd -[NSPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 132
    6   AppKit                              0x00007fff857cbbcc -[NSControl mouseDown:] + 820
    7   AppKit                              0x00007fff857c353e -[NSWindow sendEvent:] + 6853
    8   AppKit                              0x00007fff857bf674 -[NSApplication sendEvent:] + 5761
    9   AppKit                              0x00007fff856d524a -[NSApplication run] + 636
    10  AppKit                              0x00007fff85679c06 NSApplicationMain + 869
    11  Demiurge                            0x0000000100001772 main + 34
    12  libdyld.dylib                       0x00007fff83d377e1 start + 0
    13  ???                                 0x0000000000000003 0x0 + 3
)

谢谢!

4

1 回答 1

0

NSDictionaries 中不能有 nil。看起来恢复自动保存状态已损坏。不要将 autosaveId 分配给按钮或形成正确的占位符字典,其中没有 nils。

于 2013-08-08T14:53:37.713 回答