NSTableViewDelegate有2个表和tableViewSelectionDidChange:(NSNotification *)aNotification [英] NSTableViewDelegate with 2 tables and tableViewSelectionDidChange:(NSNotification *)aNotification
本文介绍了NSTableViewDelegate有2个表和tableViewSelectionDidChange:(NSNotification *)aNotification的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有2个表,它们的委托是相同的对象。苦苦思索如何适应这种语法。我有其他委托方法正常工作,因为它们正在传递NSTableView对象。
I have 2 tables whose delegate is the same object. Struggling with the syntax on how to accommodate this. I have the other delegate methods working correctly as they are passing the NSTableView object.
最受赞赏的示例
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification {
}
推荐答案
Alight弄清楚了。
Alight figured it out. Pretty simple actually.
[[aNotification object] identifier]
包含表名。
这篇关于NSTableViewDelegate有2个表和tableViewSelectionDidChange:(NSNotification *)aNotification的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文