/* NSFileManager: Get the path within the user's Library directory Original Source: (See copyright notice at ) */ /*" Return the path in the user library path of the given sub-path. In other words, if given inSubPath is "foo", the path returned will be /Users/myUser/Library/foo "*/ - (NSString *) pathFromUserLibraryPath:(NSString *)inSubPath { NSArray *domains = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,NSUserDomainMask,YES); NSString *baseDir= [domains objectAtIndex:0]; NSString *result = [baseDir stringByAppendingPathComponent:inSubPath]; return result; }