I want to store numbers using NSTextField, not allowing you to write text in the text field or checking it using if(es texto) then no almacenar
What would be in the second case "is text"?
I want to store numbers using NSTextField, not allowing you to write text in the text field or checking it using if(es texto) then no almacenar
What would be in the second case "is text"?
You have to assign a format to the textfield, try this:
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setNumberStyle:NSNumberFormatterDecimalStyle];
[textField setFormatter:formatter];