That would require to convert URL -> FSRef just for checking existence, and some special equality check. Certainly we shouldn't use it in isEqual.
Christiaan On 1 Jan 2008, at 5:16 PM, Adam R. Maxwell wrote: > Should we try using FSCompareFSRefs to check equality? ISTR having > some problems comparing URLs with the orphaned file finder. It's odd > that the trailing slash would matter for file URLs; it seems like they > should be standardized first. I wonder what NSPathStore2 does. > > On Jan 1, 2008, at 2:57 AM, [EMAIL PROTECTED] wrote: > >> Revision: 12170 >> http://bibdesk.svn.sourceforge.net/bibdesk/? >> rev=12170&view=rev >> Author: hofman >> Date: 2008-01-01 02:57:04 -0800 (Tue, 01 Jan 2008) >> >> Log Message: >> ----------- >> Check whether file for migration was already added again after >> creating the file, because the URL may have a different equivalent >> form (such as a trailing slash for a folder). Note file changes >> after migration, so the UI can update. >> >> + NSArray *currentURLs = [self valueForKeyPath:@"files.URL"]; >> >> // this function is called for all local & remote URL fields, >> whether or not they have a value >> NSURL *urlValue = [self URLForField:(id)key]; >> if (urlValue) { >> // see if this file was converted previously to avoid >> duplication >> - BOOL converted = [[self valueForKeyPath:@"files.URL"] >> containsObject:urlValue]; >> + BOOL converted = [currentURLs containsObject:urlValue];i > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Bibdesk-develop mailing list > Bibdesk-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bibdesk-develop ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bibdesk-develop mailing list Bibdesk-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-develop