views:

30

answers:

1

Hey, Im a newbie in cocoa and I have a string and I am trying to count how long it is. I have been searching through Apples docs but I can't find anything.

NSString *word = @"word";

How would I figure out how many characters is in a string?

Thanks

+4  A: 

This should do the trick:

[word length];
stefanB