BNZNSStringAdditions



Discussion

a simple addition on NSString to get a string with only the first letter upper case. E.g., from "firstName" it makes "FirstName". Used for automatically constructing setter-method selectors from property name ("setFirstName" out of "firstName").

Can it really be that this does not exist yet?!? At least I haven't found anything like this.

Note: [NSString uppercaseString] makes all letters uppercase (FIRSTNAME)

and

[NSString capitalizeString] makes all other letters lowercase (Firstname)

?!? confused ?!? so did it myself



Methods

firstLetterUpperCase

- (NSString*)firstLetterUpperCase; 

Result: returns a new string that is like this string but with an uppercase first letter

(Last Updated 8/31/2006)