gpt4 book ai didi

objective-c - 如何检测何时在 NSTableView 中选择了一行或多行?

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

当选择 NSTableView 中的一行时,我需要检查复选框列字段。

如何检测 NSTableView 中何时选择了一行或多行?

谢谢

最佳答案

使用通知NSTableViewSelectionIsChangingNotification。每当您的应用程序中出现此通知时,执行单击复选框。
创建并连接 -(IBAction)checkBoxMethod :(id)sender 方法来选中复选框并在该函数中编写代码。
CheckBox in tableview
How to click a checkbox in nstableview and update an object using KVC?
NSTableView with Checkbox Cell

关于objective-c - 如何检测何时在 NSTableView 中选择了一行或多行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8180646/

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