NSTextView's Insertion Point draws position exceptions

跟風遠走 提交于 2019-12-24 18:56:48

问题


This should be a Bug, because I can reproduce it with my friends.

I just set allowsNonContiguous Layout of NSTextView. layoutManager to true, and that's the problem.

In the editor, I first enter N blank lines, that is, press N times to return. Then go back to the second line of our input, and press any key at the moment insertion Point disappears, which will make my insertion Point incorrect.

Here is my demo: https://github.com/iiiDD/TextViewDemo


回答1:


I had the same problem. I’ve detailed how I’ve fixed this bug here : NSTextView cursor doesn't appear when typing text on macOS 10.14



来源:https://stackoverflow.com/questions/57523797/nstextviews-insertion-point-draws-position-exceptions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!