This is probably a naive question but, how do I get the length of the stringValue of an NSTextField? I tried
int len = strlen((char *)[textField stringValue]);
where textField is an NSTextField but it always returns 6 (size of a pointer?). Besides I am sure that there is a more Objective-C way to do what I am after.