You're right, I should really be storing bookmark data, but I am working on the Mac side of a cross-platfrom product and the full bookmark information is not available to me without a lot of invasive work.
searchfs() sounds like what I need. Thanks very much for the advice. -- Ben. On 24 Sep 2013, at 09:54, Ken Thomases <k...@codeweavers.com> wrote: > On Sep 24, 2013, at 3:24 AM, Ben Staveley-Taylor wrote: > >> The reason I want to do this is to discover the textual path of a file given >> its file ID (and a volume name). > >> So I suppose my real question is how to find the path for a file by its id >> (its fileSystemFileNumber attribute). > > How is it that you've come to have a file ID and volume name and nothing > else? This sounds like a situation where you should have stored bookmark > data but stored something less useful. > > I believe one solution is the searchfs() routine. Of course, that's a > potentially slow or expensive operation. In theory, I suppose, searching for > a file by its ID should be no slower than converting a file reference URL to > a file path URL. > > Regards, > Ken > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com