Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c NSTableView HIDEROWSATINDEX在Sierra上不起作用_Objective C_Macos_Cocoa_Macos Sierra - Fatal编程技术网

Objective c NSTableView HIDEROWSATINDEX在Sierra上不起作用

Objective c NSTableView HIDEROWSATINDEX在Sierra上不起作用,objective-c,macos,cocoa,macos-sierra,Objective C,Macos,Cocoa,Macos Sierra,我有一个需要刷新的NSTableView,它的一些行在刷新之后被隐藏。它正在莫哈韦和卡塔利纳开展工作,但它并没有掩盖塞拉利昂的争端 根据苹果的文档,macOS 10.11+版本应该支持它。 这是不起作用的代码块: [_tableView reloadData]; [_tableView beginUpdates]; [_tableView hideRowsAtIndexes:indexesOfRowsToHide withAnimation:NSTableViewAni

我有一个需要刷新的NSTableView,它的一些行在刷新之后被隐藏。它正在莫哈韦和卡塔利纳开展工作,但它并没有掩盖塞拉利昂的争端

根据苹果的文档,macOS 10.11+版本应该支持它。

这是不起作用的代码块:

    [_tableView reloadData];
    [_tableView beginUpdates];
    [_tableView hideRowsAtIndexes:indexesOfRowsToHide withAnimation:NSTableViewAnimationEffectNone];
    [_tableView endUpdates];

检查是否调用委托方法
tableView:didRemoveRowView:forRow:
。否则,考虑删除MaOS Seela支持吗?^ ^ ^请参阅@Willeke感谢您指出答案。据描述,它固定在High Sierra。问题在