Re: URLByResolvingBookmarkData not case sensitive
Re: URLByResolvingBookmarkData not case sensitive
- Subject: Re: URLByResolvingBookmarkData not case sensitive
- From: Trygve Inda <email@hidden>
- Date: Tue, 06 Jan 2015 21:37:45 -0800
- Thread-topic: URLByResolvingBookmarkData not case sensitive
>
>> On Jan 6, 2015, at 8:43 PM, Trygve Inda <email@hidden> wrote:
>>
>> Ultimately what I need to able to do is compare a bookmark to a path.
>
> Why? Or rather, what is the reason underlying that one?
I am keeping a database of files that the user adds to a database.
Internally I keep the bookmark to each file but also cache the file's path
as it is faster to work with.
When adding new files, I need to make sure the file is not already in the
database so I compare the paths. This works well except when the case
changes. In that situation a file might be added that is already in the
database and since the bookmark is resolving to an old path (same path but
different case), the compare method fails unless it is made case
insensitive... But not all file systems are case insensitive.
So it needs to be fast... When I add a file, I might already have a few
thousand files in the database.
_______________________________________________
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