Is there an easy way to set the character limit my NSTextField can have? I do not want the counter to then warn the user if he has exceeded the limit, I want to set a limit, so if he skips the x-characters, they can no longer print.
Check out NSFormatter. It can help you do what you are looking for and more. If you don’t need something complicated, you can try the NSTextField delegation methods.
, . .
, , .
Source: https://habr.com/ru/post/1719134/More articles:Как я могу выполнить общее отслеживание изменений на уровне полей и компонентов на уровне NHibernate? - c#Will SQL Server NOLOCK prompt return partially written strings? - sqlCreating two different types of users (Scala, Lift) - design-patternspy2exe и файловая система - pythonКак создать пакет развертывания для тестов CodedUI, записанных в бета-версии Visual Studio 2010? - visual-studio-2010Which company / platform / browser will be the first to have high-quality 3D support? - browserHelp me understand Svn merge - mergeHow to use java interfaces with several implementation classes - javaCustom SNMP Trap implementation in .NET. - c #Is there a better way to update Entity Models (* .edmx files) - visual-studioAll Articles