NSSearchPathForDirectoriesInDoma
domain=NSNetworkDomainMask,path=NSDeveloperApplicationDirectory
/Network/Developer/Applications
domain=NSNetworkDomainMask,path=NSCachesDirectory
domain=NSNetworkDomainMask,path=NSInputMethodsDirectory
/Network/Library/Input Methods
domain=NSNetworkDomainMask,path=NSDeveloperDirectory
/Network/Developer
domain=NSNetworkDomainMask,path=NSPicturesDirectory
domain=NSNetworkDomainMask,path=NSAllLibrariesDirectory
/Network/Library
/Network/Developer
domain=NSNetworkDomainMask,path=NSDocumentDirectory
domain=NSNetworkDomainMask,path=NSPreferencePanesDirectory
domain=NSNetworkDomainMask,path=NSDesktopDirectory
domain=NSNetworkDomainMask,path=NSDemoApplicationDirectory
/Network/Applications/Demos
domain=NSNetworkDomainMask,path=NSDownloadsDirectory
domain=NSNetworkDomainMask,path=NSAllApplicationsDirectory
/Network/Applications
/Network/Applications/Utilities
/Network/Developer/Applications
/Network/Applications/Demos
domain=NSNetworkDomainMask,path=NSLibraryDirectory
/Network/Library
domain=NSNetworkDomainMask,path=NSDocumentationDirectory
/Network/Library/Documentation
domain=NSNetworkDomainMask,path=NSMusicDirectory
domain=NSNetworkDomainMask,path=NSSharedPublicDirectory
domain=NSNetworkDomainMask,path=NSAutosavedInformationDirectory
domain=NSNetworkDomainMask,path=NSApplicationDirectory
/Network/Applications
domain=NSNetworkDomainMask,path=NSApplicationSupportDirectory
/Network/Library/Application Support
domain=NSNetworkDomainMask,path=NSAdminApplicationDirectory
/Network/Applications/Utilities
domain=NSNetworkDomainMask,path=NSMoviesDirectory
domain=NSNetworkDomainMask,path=NSItemReplacementDirectory
domain=NSNetworkDomainMask,path=NSUserDirectory
/Network/Users
domain=NSNetworkDomainMask,path=NSPrinterDescriptionDirectory
domain=NSNetworkDomainMask,path=NSTrashDirectory
domain=NSNetworkDomainMask,path=NSCoreServiceDirectory
domain=NSNetworkDomainMask,path=NSApplicationScriptsDirectory
domain=NSAllDomainsMask,path=NSDeveloperApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer/Applications
/Developer/Applications
/Network/Developer/Applications
domain=NSAllDomainsMask,path=NSCachesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Caches
/Library/Caches
/System/Library/Caches
domain=NSAllDomainsMask,path=NSInputMethodsDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Input Methods
/Library/Input Methods
/Network/Library/Input Methods
/System/Library/Input Methods
domain=NSAllDomainsMask,path=NSDeveloperDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer
/Developer
/Network/Developer
domain=NSAllDomainsMask,path=NSPicturesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Pictures
domain=NSAllDomainsMask,path=NSAllLibrariesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer
/Library
/Developer
/Network/Library
/Network/Developer
/System/Library
/Developer
domain=NSAllDomainsMask,path=NSDocumentDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Documents
domain=NSAllDomainsMask,path=NSPreferencePanesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/PreferencePanes
/Library/PreferencePanes
/System/Library/PreferencePanes
domain=NSAllDomainsMask,path=NSDesktopDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Desktop
domain=NSAllDomainsMask,path=NSDemoApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Demos
/Applications/Demos
/Network/Applications/Demos
domain=NSAllDomainsMask,path=NSDownloadsDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Downloads
domain=NSAllDomainsMask,path=NSAllApplicationsDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Utilities
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer/Applications
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Demos
/Applications
/Applications/Utilities
/Developer/Applications
/Applications/Demos
/Network/Applications
/Network/Applications/Utilities
/Network/Developer/Applications
/Network/Applications/Demos
domain=NSAllDomainsMask,path=NSLibraryDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library
/Library
/Network/Library
/System/Library
domain=NSAllDomainsMask,path=NSDocumentationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Documentation
/Library/Documentation
/Network/Library/Documentation
/System/Library/Documentation
domain=NSAllDomainsMask,path=NSMusicDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Music
domain=NSAllDomainsMask,path=NSSharedPublicDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Public
domain=NSAllDomainsMask,path=NSAutosavedInformationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Autosave Information
domain=NSAllDomainsMask,path=NSApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications
/Applications
/Network/Applications
domain=NSAllDomainsMask,path=NSApplicationSupportDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Application Support
/Library/Application Support
/Network/Library/Application Support
domain=NSAllDomainsMask,path=NSAdminApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Utilities
/Applications/Utilities
/Network/Applications/Utilities
domain=NSAllDomainsMask,path=NSMoviesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Movies
domain=NSAllDomainsMask,path=NSItemReplacementDirectory
domain=NSAllDomainsMask,path=NSUserDirectory
/Users
/Network/Users
domain=NSAllDomainsMask,path=NSPrinterDescriptionDirectory
/System/Library/Printers/PPDs
domain=NSAllDomainsMask,path=NSTrashDirectory
domain=NSAllDomainsMask,path=NSCoreServiceDirectory
/System/Library/CoreServices
domain=NSAllDomainsMask,path=NSApplicationScriptsDirectory
domain=NSSystemDomainMask,path=NSDeveloperApplicationDirectory
/Developer/Applications
domain=NSSystemDomainMask,path=NSCachesDirectory
/System/Library/Caches
domain=NSSystemDomainMask,path=NSInputMethodsDirectory
/System/Library/Input Methods
domain=NSSystemDomainMask,path=NSDeveloperDirectory
/Developer
domain=NSSystemDomainMask,path=NSPicturesDirectory
domain=NSSystemDomainMask,path=NSAllLibrariesDirectory
/System/Library
/Developer
domain=NSSystemDomainMask,path=NSDocumentDirectory
domain=NSSystemDomainMask,path=NSPreferencePanesDirectory
/System/Library/PreferencePanes
domain=NSSystemDomainMask,path=NSDesktopDirectory
domain=NSSystemDomainMask,path=NSDemoApplicationDirectory
/Applications/Demos
domain=NSSystemDomainMask,path=NSDownloadsDirectory
domain=NSSystemDomainMask,path=NSAllApplicationsDirectory
/Applications
/Applications/Utilities
/Developer/Applications
/Applications/Demos
domain=NSSystemDomainMask,path=NSLibraryDirectory
/System/Library
domain=NSSystemDomainMask,path=NSDocumentationDirectory
/System/Library/Documentation
domain=NSSystemDomainMask,path=NSMusicDirectory
domain=NSSystemDomainMask,path=NSSharedPublicDirectory
domain=NSSystemDomainMask,path=NSAutosavedInformationDirectory
domain=NSSystemDomainMask,path=NSApplicationDirectory
/Applications
domain=NSSystemDomainMask,path=NSApplicationSupportDirectory
/Library/Application Support
domain=NSSystemDomainMask,path=NSAdminApplicationDirectory
/Applications/Utilities
domain=NSSystemDomainMask,path=NSMoviesDirectory
domain=NSSystemDomainMask,path=NSItemReplacementDirectory
domain=NSSystemDomainMask,path=NSUserDirectory
domain=NSSystemDomainMask,path=NSPrinterDescriptionDirectory
/System/Library/Printers/PPDs
domain=NSSystemDomainMask,path=NSTrashDirectory
domain=NSSystemDomainMask,path=NSCoreServiceDirectory
/System/Library/CoreServices
domain=NSSystemDomainMask,path=NSApplicationScriptsDirectory
domain=NSUserDomainMask,path=NSDeveloperApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer/Applications
domain=NSUserDomainMask,path=NSCachesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Caches
domain=NSUserDomainMask,path=NSInputMethodsDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Input Methods
domain=NSUserDomainMask,path=NSDeveloperDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer
domain=NSUserDomainMask,path=NSPicturesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Pictures
domain=NSUserDomainMask,path=NSAllLibrariesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer
domain=NSUserDomainMask,path=NSDocumentDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Documents
domain=NSUserDomainMask,path=NSPreferencePanesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/PreferencePanes
domain=NSUserDomainMask,path=NSDesktopDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Desktop
domain=NSUserDomainMask,path=NSDemoApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Demos
domain=NSUserDomainMask,path=NSDownloadsDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Downloads
domain=NSUserDomainMask,path=NSAllApplicationsDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Utilities
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Developer/Applications
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Demos
domain=NSUserDomainMask,path=NSLibraryDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library
domain=NSUserDomainMask,path=NSDocumentationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Documentation
domain=NSUserDomainMask,path=NSMusicDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Music
domain=NSUserDomainMask,path=NSSharedPublicDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Public
domain=NSUserDomainMask,path=NSAutosavedInformationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Autosave Information
domain=NSUserDomainMask,path=NSApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications
domain=NSUserDomainMask,path=NSApplicationSupportDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Library/Application Support
domain=NSUserDomainMask,path=NSAdminApplicationDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Applications/Utilities
domain=NSUserDomainMask,path=NSMoviesDirectory
/var/mobile/Containers/Data/Application/C757E9D6-4769-4F68-9FD5-CBF8B3FF9F89/Movies
domain=NSUserDomainMask,path=NSItemReplacementDirectory
domain=NSUserDomainMask,path=NSUserDirectory
domain=NSUserDomainMask,path=NSPrinterDescriptionDirectory
domain=NSUserDomainMask,path=NSTrashDirectory
domain=NSUserDomainMask,path=NSCoreServiceDirectory
domain=NSUserDomainMask,path=NSApplicationScriptsDirectory
domain=NSLocalDomainMask,path=NSDeveloperApplicationDirectory
/Developer/Applications
domain=NSLocalDomainMask,path=NSCachesDirectory
/Library/Caches
domain=NSLocalDomainMask,path=NSInputMethodsDirectory
/Library/Input Methods
domain=NSLocalDomainMask,path=NSDeveloperDirectory
/Developer
domain=NSLocalDomainMask,path=NSPicturesDirectory
domain=NSLocalDomainMask,path=NSAllLibrariesDirectory
/Library
/Developer
domain=NSLocalDomainMask,path=NSDocumentDirectory
domain=NSLocalDomainMask,path=NSPreferencePanesDirectory
/Library/PreferencePanes
domain=NSLocalDomainMask,path=NSDesktopDirectory
domain=NSLocalDomainMask,path=NSDemoApplicationDirectory
/Applications/Demos
domain=NSLocalDomainMask,path=NSDownloadsDirectory
domain=NSLocalDomainMask,path=NSAllApplicationsDirectory
/Applications
/Applications/Utilities
/Developer/Applications
/Applications/Demos
domain=NSLocalDomainMask,path=NSLibraryDirectory
/Library
domain=NSLocalDomainMask,path=NSDocumentationDirectory
/Library/Documentation
domain=NSLocalDomainMask,path=NSMusicDirectory
domain=NSLocalDomainMask,path=NSSharedPublicDirectory
domain=NSLocalDomainMask,path=NSAutosavedInformationDirectory
domain=NSLocalDomainMask,path=NSApplicationDirectory
/Applications
domain=NSLocalDomainMask,path=NSApplicationSupportDirectory
/Library/Application Support
domain=NSLocalDomainMask,path=NSAdminApplicationDirectory
/Applications/Utilities
domain=NSLocalDomainMask,path=NSMoviesDirectory
domain=NSLocalDomainMask,path=NSItemReplacementDirectory
domain=NSLocalDomainMask,path=NSUserDirectory
/Users
domain=NSLocalDomainMask,path=NSPrinterDescriptionDirectory
domain=NSLocalDomainMask,path=NSTrashDirectory
domain=NSLocalDomainMask,path=NSCoreServiceDirectory
domain=NSLocalDomainMask,path=NSApplicationScriptsDirectory
void printdomainpath() {
NSDictionary* domaindict = [NSDictionary dictionaryWithObjectsAndKeys:
@"NSUserDomainMask", @1,
@"NSLocalDomainMask", @2,
@"NSNetworkDomainMask", @4,
@"NSSystemDomainMask", @8,
@"NSAllDomainsMask", @0xffff,
nil];
NSDictionary* dirdict = [NSDictionary dictionaryWithObjectsAndKeys:
@"NSApplicationDirectory", @1,
@"NSDemoApplicationDirectory", @2,
@"NSDeveloperApplicationDirectory", @3,
@"NSAdminApplicationDirectory", @4,
@"NSLibraryDirectory", @5,
@"NSDeveloperDirectory", @6,
@"NSUserDirectory", @7,
@"NSDocumentationDirectory", @8,
@"NSDocumentDirectory", @9,
@"NSCoreServiceDirectory", @10,
@"NSAutosavedInformationDirectory", @11,
@"NSDesktopDirectory", @12,
@"NSCachesDirectory", @13,
@"NSApplicationSupportDirectory", @14,
@"NSDownloadsDirectory", @15,
@"NSInputMethodsDirectory", @16,
@"NSMoviesDirectory", @17,
@"NSMusicDirectory", @18,
@"NSPicturesDirectory", @19,
@"NSPrinterDescriptionDirectory", @20,
@"NSSharedPublicDirectory", @21,
@"NSPreferencePanesDirectory", @22,
@"NSApplicationScriptsDirectory", @23,
@"NSItemReplacementDirectory", @99,
@"NSAllApplicationsDirectory", @100,
@"NSAllLibrariesDirectory", @101,
@"NSTrashDirectory", @102,
nil];
for (NSNumber* dok in domaindict) {
for (NSNumber* dik in dirdict) {
NSArray* arr = NSSearchPathForDirectoriesInDomains([dik unsignedIntegerValue], [dok unsignedIntegerValue], TRUE);
NSLog(@"domain=%@,path=%@", domaindict[dok], dirdict[dik]);
for (NSString* item in arr) {
NSLog(@"\t%@", item);
}
}
}
}