i saw in appkit api reference inserttext method deprecated in os x v10.11. supposed use replacement?
the documentation says
- (void)inserttext:(id)astringthis method means text typed user enters
nstextview. seensinputmanagerclass ,nstextinputprotocol specifications more information. ...
in nstextinput there note:
important
nstextinputprotocol slated deprecation. please usenstextinputclientprotocol, 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