i saw in appkit api reference inserttext
method deprecated in os x v10.11. supposed use replacement?
the documentation says
- (void)inserttext:(id)astring
this method means text typed user enters
nstextview
. seensinputmanager
class ,nstextinput
protocol specifications more information. ...
in nstextinput
there note:
important
nstextinput
protocol slated deprecation. please usenstextinputclient
protocol, introduced in os x v10.5, described innstextinputclient protocol reference
.
in nstextinputclient
protocol there method
- (void)inserttext:(id)astring replacementrange:(nsrange)replacementrange
this seems appropriate replacement
Comments
Post a Comment