Python has string.startswith() and string.endswith() functions which are pretty useful. What NSString methods can I use to have the same function?<
string.startswith()
string.endswith()
You want the hasPrefix and hasSuffix messages.
I tend to also use the compare:options: message pretty regularly to achieve the same but with case-insensitive comparison.