• 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: File path from NSFileSystemFileNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File path from NSFileSystemFileNumber


  • Subject: Re: File path from NSFileSystemFileNumber
  • From: Andreas Monitzer <email@hidden>
  • Date: Sat, 8 Dec 2001 09:48:46 +0100

On Saturday, December 8, 2001, at 09:30 , email@hidden wrote:

So now I have a unique fileID, which will remain the same for this file regardless of whether the file is moved or renamed, right? Here's my question: How do I obtain the full path to the file from this fileID so that I may actually use the file later on? Or am I going about this all wrong? Is there a better way to track references to files?

Yes, use aliases for tracking files, they've much more features than only fileIDs.
http://developer.apple.com/techpubs/macosx/Carbon/Files/AliasManager/Alias_Manager/
index.html

You'll need to convert paths into FSSpecs and vice-versa. See the list's archive for information on how to do that.

andy


  • Follow-Ups:
    • Re: File path from NSFileSystemFileNumber
      • From: Chris Hanson <email@hidden>
References: 
 >File path from NSFileSystemFileNumber (From: email@hidden)

  • Prev by Date: Re: NSGlyph, NSBezierPath questions
  • Next by Date: Re: File path from NSFileSystemFileNumber
  • Previous by thread: File path from NSFileSystemFileNumber
  • Next by thread: Re: File path from NSFileSystemFileNumber
  • Index(es):
    • Date
    • Thread