在 NSTableView mac app objective c 中拖放时删除蓝线

Remove blue line while drag drop in NSTableView mac app objective c

我在表格视图中实现了拖放功能。拖拽的时候默认出现蓝线,我想customise/remove这条蓝线。 这可能是重复的,但我找不到任何明确的答案。 请建议。

我尝试将突出显示设置为 none

[self.tableView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSourceList];
[self.tableView setDraggingDestinationFeedbackStyle:NSTableViewDraggingDestinationFeedbackStyleNone];

但它不起作用。

非常感谢任何帮助!

参考link:https://developer.apple.com/library/content/samplecode/DragNDropOutlineView/Introduction/Intro.html

提前致谢。

终于找到答案了:

[self.tableView setDraggingDestinationFeedbackStyle:NSTableViewDraggingDestinationFeedbackStyleNone];