I have some old code that finds specific folders using the old FSFindFolder routine. Now I have the task of modernizing this code. At first using NSFileManager's URLForDirectory seem like the right choice. Unfortunately I found out that many of the folders you could locate using FSFindFolder are no longer supported by URLForDirectory.
The list of folders you can locate using FSFindFolder is very long and most of them are not useful to my anyway.
Here is a partial list of FSFindFolder constants that I do need to convert and their URLForDirectory equivalents:
FSFindFolder URLForDirectory
============================== ===============
kDesktopFolderType NSDesktopDirectory
kCachedDataFolderType NSCachesDirectory
kApplicationSupportFolderType NSApplicationSupportDirectory
kTemporaryFolderType located by calling NSTemporaryDirectory()
kCurrentUserFolderType located by calling NSHomeDirectory()
kSystemFolderType Not Available
kPreferencesFolderType Not Available
kTrashFolderType Not Available
kAudioComponentsFolderType Not Available
kVolumeRootFolderType Not Available
kSharedUserDataFolderTypeNo Not Available
My question: is there a standard way to locate paths to each of the folders marked "Not Available" without using FSFindFolder?