Re: stringByTrimmingCharactersInSet
Re: stringByTrimmingCharactersInSet
- Subject: Re: stringByTrimmingCharactersInSet
- From: Andreas Mayer <email@hidden>
- Date: Thu, 19 Sep 2002 14:29:38 +0200
Am Donnerstag, 19.09.02 um 14:10 Uhr schrieb Claudius Sailer:
[Text stringByTrimmingCharactersInSet:whitespaceCharacterSet]
and the debugger says "WhitespaceCharacterSet undeclared (first use in
this function)" Why?
Because 'whitespaceCharacterSet' is a class method of NSCharacterSet.
Try this:
Text = [Text stringByTrimmingCharactersInSet:[NSCharacterSet
whitespaceCharacterSet]];
BTW: Variable names should be lowercase; e.g. 'text' instead of 'Text'.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.