• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: stringByTrimmingCharactersInSet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >stringByTrimmingCharactersInSet (From: Claudius Sailer <email@hidden>)

  • Prev by Date: Re: stringByTrimmingCharactersInSet
  • Next by Date: Re: stringByTrimmingCharactersInSet
  • Previous by thread: Re: stringByTrimmingCharactersInSet
  • Next by thread: Re: stringByTrimmingCharactersInSet
  • Index(es):
    • Date
    • Thread