| 1 |
// |
| 2 |
// NSFileManager+DirectoryLocations.h |
| 3 |
// |
| 4 |
// Created by Matt Gallagher on 06 May 2010 |
| 5 |
// |
| 6 |
// This software is provided 'as-is', without any express or implied |
| 7 |
// warranty. In no event will the authors be held liable for any damages |
| 8 |
// arising from the use of this software. Permission is granted to anyone to |
| 9 |
// use this software for any purpose, including commercial applications, and to |
| 10 |
// alter it and redistribute it freely, subject to the following restrictions: |
| 11 |
// |
| 12 |
// 1. The origin of this software must not be misrepresented; you must not |
| 13 |
// claim that you wrote the original software. If you use this software |
| 14 |
// in a product, an acknowledgment in the product documentation would be |
| 15 |
// appreciated but is not required. |
| 16 |
// 2. Altered source versions must be plainly marked as such, and must not be |
| 17 |
// misrepresented as being the original software. |
| 18 |
// 3. This notice may not be removed or altered from any source |
| 19 |
// distribution. |
| 20 |
// |
| 21 |
|
| 22 |
#import <Foundation/Foundation.h> |
| 23 |
|
| 24 |
// |
| 25 |
// DirectoryLocations is a set of global methods for finding the fixed location |
| 26 |
// directoriess. |
| 27 |
// |
| 28 |
@interface NSFileManager (DirectoryLocations) |
| 29 |
|
| 30 |
- (NSString *)findOrCreateDirectory:(NSSearchPathDirectory)searchPathDirectory |
| 31 |
inDomain:(NSSearchPathDomainMask)domainMask |
| 32 |
appendPathComponent:(NSString *)appendComponent |
| 33 |
error:(NSError **)errorOut; |
| 34 |
- (NSString *)applicationSupportDirectory; |
| 35 |
|
| 36 |
@end |