Abba madness compare:options:range:
Abba madness compare:options:range:
- Subject: Abba madness compare:options:range:
- From: Jacob Engstrand <email@hidden>
- Date: Tue, 16 Sep 2003 01:25:08 +0200
Hi All,
I am about to loose my mind. Please help.
This call returns NSOrderedSame
[@"Abba" compare: @"abba"
options: NSCaseInsensitiveSearch
range: NSMakeRange(0, 4)];
But this call returns NSOrderedDescending
[@"Abba" compare: @"abba"
options: NSCaseInsensitiveSearch
range: NSMakeRange(0, 3)];
As I understand it, the first call compares "Abba" and "abba"
disregarding case and so it regards them as being equal. Fine.
The second call compares "Abb" and "abb" disregarding case and yet it
returns saying they are not equal.
Why?
/jak
_______________________________________________
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.