• 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: Changing Case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing Case


  • Subject: Re: Changing Case
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 18 Mar 2004 18:14:02 +0000

On 18 Mar 2004, at 17:36, Stephane Sudre wrote:

> On Thursday, March 18, 2004, at 03:40 PM, Alastair Houghton wrote:
>
>> I suppose you might argue that this kind of thing is overkill
>
> It's potentially a monster kill.
>
> NSMutableString *myString = [NSMutableString
> stringWithUTF8String:"hello"];
>
> myString=[myString capitalizedString];

I should perhaps add that the -capitalizedString method would indeed be
a better way of upcasing the "h" of "hello" (so in that sense, you're
right), but it won't work if you wanted to make the "e" upper case
instead, or if you wanted to change "well hello" to "well Hello" (for
instance).

Kind regards,

Alastair.

--
Alastair Houghton
http://www.alastairs-place.net

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: Changing Case (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Calling original functions from overriding Category functions
  • Next by Date: Re: converting between strings, NSCalendarDates and back again
  • Previous by thread: Re: Changing Case
  • Next by thread: [10.3.3] NSXXXWithContentsOfURL: crash when highly multithreaded ?
  • Index(es):
    • Date
    • Thread