在 OS X 上禁用 NSTextView 中的操作扩展
Disable Action Extensions in NSTextView on OS X
有没有办法完全禁用 NSTextView
中 OS X Yosemite 中引入的操作扩展?见下图示例:
我没有找到任何关于此的信息 - 无论是在文档中还是在 Yosemite 发行说明中。
您是否尝试将菜单的 allowsContextMenuPlugIns
属性 设置为 NO
?这有助于解决菜单添加的类似问题,尽管不是 Yosemite 扩展。
在 OS X Yosemite 中的 NSTextView
上有一个新的 属性,名为 usesRolloverButtonForSelection
。将其设置为 false
会禁用动作扩展菜单。
@availability(OSX, introduced=10.10)
var usesRolloverButtonForSelection: Bool
// Controls whether to show rollover button for extension service items inside text selection. It's enabled by default.
有没有办法完全禁用 NSTextView
中 OS X Yosemite 中引入的操作扩展?见下图示例:
我没有找到任何关于此的信息 - 无论是在文档中还是在 Yosemite 发行说明中。
您是否尝试将菜单的 allowsContextMenuPlugIns
属性 设置为 NO
?这有助于解决菜单添加的类似问题,尽管不是 Yosemite 扩展。
在 OS X Yosemite 中的 NSTextView
上有一个新的 属性,名为 usesRolloverButtonForSelection
。将其设置为 false
会禁用动作扩展菜单。
@availability(OSX, introduced=10.10)
var usesRolloverButtonForSelection: Bool
// Controls whether to show rollover button for extension service items inside text selection. It's enabled by default.