Re: File path from NSFileSystemFileNumber
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