• 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: NSString comparison with locale single character error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString comparison with locale single character error


  • Subject: Re: NSString comparison with locale single character error
  • From: Conor Dearden <email@hidden>
  • Date: Thu, 16 Nov 2006 10:58:56 +0100

> If you want the first character, you have to use:
>
> [sortString substringWithRange:[sortString
> rangeOfComposedCharacterSequenceAtIndex:0]]
>
> to handle characters that contain more than one code point. Try
> fixing that first.

Thank you Deborah. I was hoping it would be something simple I was
overlooking. Unfortunately the behaviour is the same, composed characters
crossed my mind but I figured if the problem lay with creating the substring
I would not get the display of the single letter correctly. I have filed the
bug report ID# 4840364.

Conor


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSString comparison with locale single character error (From: Deborah Goldsmith <email@hidden>)

  • Prev by Date: Your details [:.VIRUS.:]
  • Next by Date: [NSApp targetForAction:] returns nil from Services menu handler when app not active
  • Previous by thread: Re: NSString comparison with locale single character error
  • Next by thread: Problem with localized characters in path
  • Index(es):
    • Date
    • Thread