How do you test if an NSString is empty? or all whitespace or nil? with a single method call?
Maybe you can try something like this:
+ (BOOL)stringIsEmpty:(NSString *)str { return (str == nil) || (([str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]).length == 0); }