How do you test if an NSString is empty? or all whitespace or nil? with a single method call?
I'm using this define as it works with nil strings as well as empty strings:
#define STR_EMPTY(str) \ str.length == 0
Actually now its like this:
#define STR_EMPTY(str) \ (![str isKindOfClass:[NSString class]] || str.length == 0)