• 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: URLByResolvingBookmarkData not case sensitive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: URLByResolvingBookmarkData not case sensitive
      • From: Ken Thomases <email@hidden>
    • Re: URLByResolvingBookmarkData not case sensitive
      • From: Robert Martin <email@hidden>
    • Re: URLByResolvingBookmarkData not case sensitive
      • From: Jens Alfke <email@hidden>
References: 
 >Re: URLByResolvingBookmarkData not case sensitive (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: URLByResolvingBookmarkData not case sensitive
  • Next by Date: Re: URLByResolvingBookmarkData not case sensitive
  • Previous by thread: Re: URLByResolvingBookmarkData not case sensitive
  • Next by thread: Re: URLByResolvingBookmarkData not case sensitive
  • Index(es):
    • Date
    • Thread