PDA

View Full Version : [Help]special actions on cocoa with xCode




eti-enne02
Nov 12, 2008, 07:53 PM
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



eti-enne02
Nov 14, 2008, 04:45 PM
please...anyone knows how to do so?

kainjow
Nov 14, 2008, 07:51 PM
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.

eti-enne02
Dec 15, 2008, 07:13 PM
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!