Is there an easy way for me to set a limit on the amount of characters my NSTextField can have? I don't want to have a counter then warn the user if it's over the limit, I want to set the limit so if it's past x characters that's it, they can't type anymore.
+1
A:
Check out NSFormatter. It can help you do what you're looking for and a lot more. If you don't need something that complicated, you might try the NSTextField delegate methods.
Carl Norum
2009-10-02 20:38:10
Thanks a bunch!
Matt S.
2009-10-02 20:45:23
Sure thing, anytime.
Carl Norum
2009-10-02 21:12:20