• 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: Searchable persistent file reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searchable persistent file reference


  • Subject: Re: Searchable persistent file reference
  • From: "Gary L. Wade" <email@hidden>
  • Date: Wed, 10 Dec 2008 11:00:09 -0700
  • Thread-topic: Searchable persistent file reference

An alias stores quite a bit of information in it to allow you to find a file
object (files, folder, disks) if it moves or is renamed or if any of the
elements of its path is renamed, and can usually work with varied file
systems.  I am not familiar with BSAlias or NDAlias, but if they provide a
good wrapper around the CoreServices AliasHandle and associated functions,
they would be a good place for a high-level solution.

On 12/10/2008 6:59 AM, "Ben" <email@hidden> wrote:

> Hi list,
>
> I am trying to store a reference to a file in a database, such that if
> the file moves, I can still search for it in my database.
> I have read up on the Carbon Alias Manager and the third party BSAlias/
> NDAlias classes but none of these quite seem to fit the bill as it
> looks like I am working backwards from their designed use. ie, rather
> than finding the file from a database record, I want to lookup the
> database record from a known file.
>
> In this situation, would it be best to use -[NSFileManager
> attributesOfItemAtPath:error:] and store the NSFileSystemFileNumber?
> I'm not sure how resilient this approach is. Or is there something
> that I have missed completely?
>
> Regards,
>
> Ben


_______________________________________________

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

References: 
 >Searchable persistent file reference (From: Ben <email@hidden>)

  • Prev by Date: Re: Multithreading and Mach ports
  • Next by Date: Distributing apps
  • Previous by thread: Re: Searchable persistent file reference
  • Next by thread: Static and Dynamic libraries for iPhone apps ?
  • Index(es):
    • Date
    • Thread