• 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
Abba madness compare:options:range:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Abba madness compare:options:range:
      • From: Pete Yandell <email@hidden>
  • Prev by Date: AppleScript to make different document types
  • Next by Date: Re: Abba madness compare:options:range:
  • Previous by thread: AppleScript to make different document types
  • Next by thread: Re: Abba madness compare:options:range:
  • Index(es):
    • Date
    • Thread