FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
NSPathUtilities.h extension function collection. More...
Go to the source code of this file.
Classes | |
category | NSString(NSPathUtilities) |
Extensions of NSString(NSStringPathExtensions) More... | |
Functions | |
Path utilities | |
FOUNDATION_EXTERN NSString * | NSPathForUserDirectory (NSSearchPathDirectory directory) |
Returns directory path relative to user directory. More... | |
FOUNDATION_EXTERN NSString * | NSPathForUserFileInDirectory (NSSearchPathDirectory directory, NSString *filename) |
Returns file path relative to user directory. More... | |
FOUNDATION_EXTERN NSString * | NSPathForHomeFile (NSString *filename) |
Returns file path relative to home directory. More... | |
FOUNDATION_EXTERN NSString * | NSPathForHomeFileForUser (NSString *filename, NSString *userName) |
Returns file path relative to home directory for user. More... | |
FOUNDATION_EXTERN NSString * | NSUserConfigurationDirectory (void) |
Returns user configuration directory. More... | |
FOUNDATION_EXTERN NSString * | NSPathForUserConfigurationFile (NSString *filename) |
Returns user configuration file. More... | |
FOUNDATION_EXTERN NSString * | NSPathForTemporaryFile (NSString *filename) |
Returns file path relative to temporary directory. More... | |
NSPathUtilities.h extension function collection.
FOUNDATION_EXTERN NSString* NSPathForHomeFile | ( | NSString * | filename | ) |
Returns file path relative to home directory.
FOUNDATION_EXTERN NSString* NSPathForHomeFileForUser | ( | NSString * | filename, |
NSString * | userName | ||
) |
Returns file path relative to home directory for user.
FOUNDATION_EXTERN NSString* NSPathForTemporaryFile | ( | NSString * | filename | ) |
Returns file path relative to temporary directory.
This is used for smart URL prefix 'tmp://'
FOUNDATION_EXTERN NSString* NSPathForUserConfigurationFile | ( | NSString * | filename | ) |
Returns user configuration file.
For OS X, this returns ~/Library. For iOS, this returns ~/Documents. This is used for smart URL prefix 'conf://'
FOUNDATION_EXTERN NSString* NSPathForUserDirectory | ( | NSSearchPathDirectory | directory | ) |
Returns directory path relative to user directory.
FOUNDATION_EXTERN NSString* NSPathForUserFileInDirectory | ( | NSSearchPathDirectory | directory, |
NSString * | filename | ||
) |
Returns file path relative to user directory.
FOUNDATION_EXTERN NSString* NSUserConfigurationDirectory | ( | void | ) |
Returns user configuration directory.
For OS X, this returns ~/Library. For iOS, this returns ~/Documents. This is used for smart URL prefix 'conf://'