Re: File path from NSFileSystemFileNumber
Re: File path from NSFileSystemFileNumber
- Subject: Re: File path from NSFileSystemFileNumber
- From: Chris Hanson <email@hidden>
- Date: Sat, 8 Dec 2001 03:52:23 -0600
At 9:48 AM +0100 12/8/01, Andreas Monitzer wrote:
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.
You don't have to use FSSpecs, you can go from paths to FSRefs to
AliasHandles rather easily. And with the trivial little BDAlias
class I threw together, you should be able to go straight from full
path strings to AliaseHandles to NSData objects and back again fairly
easily. <
http://bdistributed.com/projects/BDAlias/>
If anyone has tried or or used it, let me know. I just coded it up
and made sure it compiled before posting to the list a couple months
ago, and I haven't had any feedback yet.
-- Chris
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden