FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSPathUtilities.h File Reference

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...
 

Detailed Description

NSPathUtilities.h extension function collection.

Function Documentation

FOUNDATION_EXTERN NSString* NSPathForHomeFile ( NSString *  filename)

Returns file path relative to home directory.

See also
NSHomeDirectory
FOUNDATION_EXTERN NSString* NSPathForHomeFileForUser ( NSString *  filename,
NSString *  userName 
)

Returns file path relative to home directory for user.

See also
NSHomeDirectoryForUser
FOUNDATION_EXTERN NSString* NSPathForTemporaryFile ( NSString *  filename)

Returns file path relative to temporary directory.

This is used for smart URL prefix 'tmp://'

See also
NSTemporaryDirectory
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://'

See also
NSUserConfigurationDirectory
FOUNDATION_EXTERN NSString* NSPathForUserDirectory ( NSSearchPathDirectory  directory)

Returns directory path relative to user directory.

See also
NSSearchPathForDirectoriesInDomains
FOUNDATION_EXTERN NSString* NSPathForUserFileInDirectory ( NSSearchPathDirectory  directory,
NSString *  filename 
)

Returns file path relative to user directory.

See also
NSSearchPathForDirectoriesInDomains
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://'

See also
NSSearchPathForDirectoriesInDomains
NSDocumentDirectory
NSLibraryDirectory
NSUserDomainMask