FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSPathUtilities.h
Go to the documentation of this file.
1 //
2 // NSPathUtilities.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 10. 11. 2..
6 // Copyright 2010 youknowone.org All rights reserved.
7 //
8 
21 FOUNDATION_EXTERN NSString *NSPathForUserDirectory(NSSearchPathDirectory directory);
27 FOUNDATION_EXTERN NSString *NSPathForUserFileInDirectory(NSSearchPathDirectory directory, NSString *filename);
28 
34 FOUNDATION_EXTERN NSString *NSPathForHomeFile(NSString *filename);
40 FOUNDATION_EXTERN NSString *NSPathForHomeFileForUser(NSString *filename, NSString *userName);
41 
54 FOUNDATION_EXTERN NSString *NSUserConfigurationDirectory(void);
60 FOUNDATION_EXTERN NSString *NSPathForUserConfigurationFile(NSString *filename);
61 
68 FOUNDATION_EXTERN NSString *NSPathForTemporaryFile(NSString *filename);
69 
70 
75 
82 - (NSString *)stringByAppendingPathFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1, 2);
83 
84 @end
FOUNDATION_EXTERN NSString * NSPathForUserConfigurationFile(NSString *filename)
Returns user configuration file.
FOUNDATION_EXTERN NSString * NSPathForTemporaryFile(NSString *filename)
Returns file path relative to temporary directory.
FOUNDATION_EXTERN NSString * NSPathForUserDirectory(NSSearchPathDirectory directory)
Returns directory path relative to user directory.
FOUNDATION_EXTERN NSString * NSUserConfigurationDirectory(void)
Returns user configuration directory.
FOUNDATION_EXTERN NSString * NSPathForUserFileInDirectory(NSSearchPathDirectory directory, NSString *filename)
Returns file path relative to user directory.
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.
Extensions of NSString(NSStringPathExtensions)
Definition: NSPathUtilities.h:74