此错误仅在特定时间(创建新文档后)发生。如果我保存并重新打开,它就可以了。任何的想法?有人有同样的错误吗?
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
)
谢谢!
答案 0 :(得分:0)
你在NSDictionaries中不能没有。看起来恢复自动保存状态已经破裂。不要将autosaveId指定给按钮,也不要在没有nils的情况下形成正确的占位符字典。