user377419
user377419

Reputation: 4999

Cocoa - Method to count the characters in a text field?

I'm pretty new to objective C started a few days ago...

I want to count all the chars in a text field. Could

[textField length]

be useful at all and how do I use it?

Upvotes: 0

Views: 590

Answers (1)

mipadi
mipadi

Reputation: 410722

NSUInteger len = [[textField stringValue] length];

Upvotes: 5

Related Questions