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()

There's a risk to that solution, though. A longstanding bug (2489632) in FSPathMakeRef (and thus with a few other routines that apparently use it) whereby symlinks are silently resolved. Depending on your needs, that may be a show-stopper.

G_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to