let range = textView.selectedRanges[0] as! NSRange
if range.location == self?.topView.searchField.stringValue.count {
//your code
}
let range = textView.selectedRanges[0] as! NSRange
if range.location == self?.topView.searchField.stringValue.count {
//your code
}
本文标题:MacOS开发笔记11-查找光标位置
本文链接:https://www.haomeiwen.com/subject/clotlktx.html
网友评论