Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
- Subject: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
- From: Jens Alfke <email@hidden>
- Date: Sat, 05 May 2012 19:45:06 -0700
On May 5, 2012, at 4:51 PM, Kyle Sluder wrote:
> If I understand Quincey correctly, that's exactly what he's saying: the semantics of localizedCaseInsensitiveCompare: might be such that it is not appropriate for such algorithms.
But that doesn’t make sense, because the main purpose of -compare: methods is to use for sorting, for methods like -sortUsingSelector: or for NSSortDescriptor. And using -localizedCaseInsensitiveCompare: is pretty common for lists displayed in a UI. So I maintain this is a bug.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden