NSTextView的插入点绘制位置异常

时间:2019-08-16 11:24:09

标签: swift cocoa nstextview textkit

这应该是一个错误,因为我可以和朋友们一起复制它。

我刚刚设置了NSTextView的allowNonContiguous Layout。 layoutManager为true,就是问题所在。

enter image description here enter image description here

在编辑器中,我首先输入N空行,即按N次返回。然后返回到我们输入的第二行,并在插入点消失时按任意键,这会使我的插入点不正确。

这是我的演示: https://github.com/iiiDD/TextViewDemo

1 个答案:

答案 0 :(得分:-2)

我有同样的问题。我已经在这里详细说明了如何解决此错误:NSTextView cursor doesn't appear when typing text on macOS 10.14