• 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: Comparing path strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparing path strings


  • Subject: Re: Comparing path strings
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 26 Mar 2009 16:07:52 +0000


On 26 Mar 2009, at 13:29, Adam R. Maxwell wrote:


On Mar 26, 2009, at 6:04 AM, Jean-Daniel Dupas wrote:


Le 26 mars 09 à 13:22, Jerry Krinock a écrit :


On 2009 Mar 26, at 01:04, Oleg Krupnov wrote:

Am I missing a method specifically intended for path comparison?

Not that I know of. But you are missing the method for preprocessing them before comparison. Look at:


 -[NSString stringByStandardizingPath]


An other way may be to convert them into FSRef (using FSPathMakeRef()) and then compare them using FSCompareFSRefs()

That's what I use. stringByStandardizingPath doesn't do anything for case sensitivity, AFAICT.

The big problem is that file systems differ in case sensitivity. For a start, HFS+ can be configured to be either case sensitive or insensitive. And OS X does support several other file systems.


_______________________________________________

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


References: 
 >Comparing path strings (From: Oleg Krupnov <email@hidden>)
 >Re: Comparing path strings (From: Jerry Krinock <email@hidden>)
 >Re: Comparing path strings (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Comparing path strings (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Re: NSTableView reloadData from two sources?
  • Next by Date: [Q] Strange Drag & Drop from my app to FCP project window
  • Previous by thread: Re: Comparing path strings
  • Next by thread: Re: Comparing path strings
  • Index(es):
    • Date
    • Thread