Re: Comparing path strings

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.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Cocoa-dev mailing list (Cocoa-dev@xxxxxxxxxxxxxxx)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)

Help/Unsubscribe/Update your Subscription:

This email sent to maillists@xxxxxxxxx...