• 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: cocoa-dev digest, Vol 2 #2711 - 14 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 2 #2711 - 14 msgs


  • Subject: Re: cocoa-dev digest, Vol 2 #2711 - 14 msgs
  • From: Greg Titus <email@hidden>
  • Date: Tue, 29 Jul 2003 15:43:05 -0700

On Tuesday, July 29, 2003, at 2:15 PM, John Randolph wrote:
BTW, it's not clear to me what the difference is between -stringByCollapsingWhitespaceAndRemovingSurroundingWhitespace and -stringByRemovingWhitespace would be. By "collapsing", do you mean shrinking all whitespace to a single space character?

Yes, exactly.

[@"\t foo \t\t\t bar " stringByRemovingSurroundingWhitepace] results in @"foo \t\t\t bar".
[@"\t foo \t\t\t bar " stringByCollapsingWhitespaceAndRemovingSurroundingWhitespace] results in @"foo bar".

- Greg
_______________________________________________
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: 
 >Re: cocoa-dev digest, Vol 2 #2711 - 14 msgs (From: Chris Purcell <email@hidden>)
 >Re: cocoa-dev digest, Vol 2 #2711 - 14 msgs (From: Greg Titus <email@hidden>)
 >Re: cocoa-dev digest, Vol 2 #2711 - 14 msgs (From: John Randolph <email@hidden>)

  • Prev by Date: Re: Memory Management
  • Next by Date: Re: NSOutlineView -- How to find the last selected item
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #2711 - 14 msgs
  • Next by thread: Why is sound:didFinishPlaying: only called once?
  • Index(es):
    • Date
    • Thread