Since upgrading to Panther, one of my applications is having a problem trimming strings using code of the form:
Code:
stringB = [stringA stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
Any space characters get trimmed, but tab characters do not get trimmed. The documentation specifically states that this character set includes space and tab characters!
Any one else having problems with this? Any solutions?
My only work around so far is to replace all occurances of "\t" with "" (I guess this will work?).