N newformac macrumors regular Original poster May 24, 2011 107 0 Aug 16, 2011 #1 I want to set text length limit for NSTextField and NSSecureTextField . i want only 5 digit can enter or paste in these field ,please help me how can i do this? thanks.
I want to set text length limit for NSTextField and NSSecureTextField . i want only 5 digit can enter or paste in these field ,please help me how can i do this? thanks.
ritsard macrumors regular Jun 18, 2009 100 0 SF Bay Area, CA Aug 16, 2011 #2 Look at the delegates associated with that NSTextField. If you can detect each keystroke, what do you think you can do?
Look at the delegates associated with that NSTextField. If you can detect each keystroke, what do you think you can do?
N newformac macrumors regular Original poster May 24, 2011 107 0 Aug 16, 2011 #3 can u please explain me more for this? what delegate use for this? thanks.
ritsard macrumors regular Jun 18, 2009 100 0 SF Bay Area, CA Aug 18, 2011 #4 check this one out: textDidChange: