[Help]special actions on cocoa with xCode

Discussion in 'Mac Programming' started by eti-enne02, Nov 12, 2008.

  1. eti-enne02 macrumors newbie

    Joined:
    Nov 12, 2008
    #1
    hey everyone! I'de need help to know a few things(I'm a noob programmer:()

    Info: I'm using xCode and programming with cocoa

    - I'de like to know how to add a maximum numbers to a text field(like you type 4 then it switches to the next text field automaticly)

    -I'de also like to know how to make the send button send the info written before in the fields to a server/mail/etc.

    -Also, I need to know how to make a faded button appear when every fields are full

    Thanks!:D
     
  2. eti-enne02 thread starter macrumors newbie

    Joined:
    Nov 12, 2008
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    1. See NSNumberFormatter and its setMaximum: method.
    2. See NSURLConnection
    3. What's a faded button? Do you mean a hidden button (setHidden:)? Set all your text fields' delegates to your controller and implement the controlTextDidChange: method, then check each text field to see if its stringValue's length is 0.
     
  4. eti-enne02 thread starter macrumors newbie

    Joined:
    Nov 12, 2008
    #4
    un allright i posted this in a while but maybe someone really nice would help me. I'm a total "noob" and I don't know how to and where to put the commands above :(
    can anyone tell em??:D Thanks!
     

Share This Page