Possible Duplicate:
How do I test if a string is empty in Objective C?
I've been looking through Apple's documentation for a relatively basic function, and I cannot imagine that they wouldn't have a function to see if a string is either nothing/nil, or empty whitespace. I've Google searched for this too. The only things I'm finding are people giving advice on how to create their own function to test for an empty string.
In .NET, all I have to say is
If (String.IsNullOrEmpty(txtTextBox.Text)) {
// Action
}
Does Cocoa have an equivalent to the IsNullOrEmpty from .NET's String class?