编辑`NSOutlineView`内联的标题

时间:2014-03-24 09:14:24

标签: objective-c macos cocoa nsoutlineview

我有一个NSOutlineView,希望能够编辑该列表中条目的标题。

默认情况下列表似乎支持这个,但是一旦我按下Enter键就会抛出错误:

Exception detected while handling key input.
-[NSProxy doesNotRecognizeSelector:controlTextDidEndEditing:] called!

我尝试在我的委托中实现此方法,但它没有被调用。

我正在this problem PXSourceList,但我认为这是一个普遍的NSOutlineView问题。

2 个答案:

答案 0 :(得分:1)

这是PXSourceList中的一个错误,现在已在2.0.3版本中修复:

https://github.com/Perspx/PXSourceList/releases/tag/2.0.3

答案 1 :(得分:0)

NSProxy响应您的委托调用这一事实告诉您,您自己的委托未连接到大纲视图的委托。

检查您的代理是否已连接到大纲视图,并查看以下有关代表的文档。

https://developer.apple.com/library/mac/qa/qa1551/_index.html

相关问题