开发者

Detect whether or not text in NSTextfield is a Dictionary word Cocoa

开发者 https://www.devze.com 2023-03-30 23:57 出处:网络
Is this actually possible? If so I wo开发者_运维百科uld like to use a simple if () statement to alert the user that he/she can not use dictionary words when entering a key for encryption.

Is this actually possible? If so I wo开发者_运维百科uld like to use a simple if () statement to alert the user that he/she can not use dictionary words when entering a key for encryption.

Thank you for all your help.


Yes. Look it up in the dictionary; if it's not there, show your alert.

… to alert the user that he/she can not use dictionary words when entering a key for encryption.

About that.

It's probably a good idea to show your alert if the entered key is a single dictionary word, but I recommend allowing multiple words.

0

精彩评论

暂无评论...
验证码 换一张
取 消