How set text length limit in NSTextField and NSSecureTextField ?

Discussion in 'Mac Programming' started by newformac, Aug 16, 2011.

  1. newformac macrumors regular

    Joined:
    May 24, 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.
     
  2. ritsard macrumors regular

    ritsard

    Joined:
    Jun 18, 2009
    Location:
    SF Bay Area, CA
    #2
    Look at the delegates associated with that NSTextField. If you can detect each keystroke, what do you think you can do? :D
     
  3. newformac thread starter macrumors regular

    Joined:
    May 24, 2011
    #3
    can u please explain me more for this?
    what delegate use for this?

    thanks.
     
  4. ritsard macrumors regular

    ritsard

    Joined:
    Jun 18, 2009
    Location:
    SF Bay Area, CA

Share This Page