gpt4 book ai didi

cocoa - NSTableViewDelegate 有 2 个表和 tableViewSelectionDidChange :(NSNotification *)aNotification

转载 作者:行者123 更新时间:2023-12-03 16:17:21 33 4
gpt4 key购买 nike

我有 2 个表,其委托(delegate)是同一个对象。正在努力解决如何适应这种情况的语法。我让其他委托(delegate)方法正常工作,因为它们正在传递 NSTableView 对象。

最受赞赏的例子

- (void)tableViewSelectionDidChange:(NSNotification *)aNotification {

}

最佳答案

阿莱特想通了。其实很简单。

[[aNotification object] identifier] 

包含表名称。

关于cocoa - NSTableViewDelegate 有 2 个表和 tableViewSelectionDidChange :(NSNotification *)aNotification,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9529725/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com