swift - Are there any relevant methods for finding the results of the find panel on NSTextView? -
in nstextview
control, press command+f
open find panel. after enter search content , click next, i'll find relevant text. have special requirement, is, after user finds result, want location of string found in nstextview
.
is there relevant method me?.
i tried rewriting following method, nothing answered.
func selectionrange(forproposedrange: nsrange, granularity: nsselectiongranularity) func setselectedrange(nsrange) func setselectedrange(nsrange, affinity: nsselectionaffinity, stillselecting: bool) func setselectedranges([nsvalue], affinity: nsselectionaffinity, stillselecting: bool)
Comments
Post a Comment