【发布时间】:2009-05-28 02:24:04
【问题描述】:
我正在创建一个应用程序,当我运行它时,我检查了调试窗格,我在控制台中收到了这些错误:
2009-05-27 07:18:03.852 Spark[1228:10b] [valueForUndefinedKey:]:实体项目不符合关键注释的键值编码。
2009-05-27 07:18:09.029 Spark[1228:10b] 对象 [entity: Projects] 的键路径 selectionIndexPaths 的设置值错误(来自名为 MainMenu.nib 的 Nib 中对象 ID 为 726 的绑定对象): [ valueForUndefinedKey:]: 实体 Projects 不符合关键注释的键值编码。
仅当我将文本字段值绑定到 NSTreeController 的选择和控制器键“注释”时才会发生这种情况,我还注意到当我尝试在应用程序中编辑文本字段时大纲视图冻结(这是上述错误时显示在控制台中)。我该如何解决这个问题如果我没有正确绑定文本字段,这里是文本字段绑定的图片:http://snapplr.com/840y
实体图
新错误
**2009-05-27 18:37:41.661 Spark[3957:10b] Unacceptable type of value for attribute: property = "notes"; desired type = NSString; given type = NSConcreteAttributedString; value = Alpha Nine Zeta{
NSColor = NSNamedColorSpace System textColor;
NSFont = "MarkerFelt-Thin 16.00 pt. P [] (0x001a7190) fobj=0x00146ef0, spc=4.00";
NSOriginalFont = "MarkerFelt-Thin 16.00 pt. P [] (0x001a7190) fobj=0x00146ef0, spc=4.00";
NSParagraphStyle = Alignment 3, LineSpacing 0, ParagraphSpacing 0, ParagraphSpacingBefore 0, HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0, LineHeightMultiple 0, LineBreakMode 0, Tabs (
28L,
56L,
84L,
112L,
140L,
168L,
196L,
224L,
252L,
280L,
308L,
336L
), DefaultTabInterval 0, Blocks (null), Lists (null), BaseWritingDirection -1, HyphenationFactor 0, TighteningFactor 0.05, HeaderLevel 0;
}.**
【问题讨论】:
-
您能否发布项目的代码或实体图 - 这就是消息所说的问题所在。
-
刚刚添加了实体图
标签: objective-c cocoa