-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Scharf
committed
Jan 5, 2013
1 parent
87ab730
commit 67ccd5a
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// NSURL+Directories.h | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface NSURL(Directories) | ||
|
||
+ (NSURL *) documentsDirectory; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// NSURL+Directories.m | ||
// nysci | ||
// | ||
// Created by Dave on 1/5/13. | ||
// Copyright (c) 2013 Local Projects. All rights reserved. | ||
// | ||
|
||
#import "NSURL+Directories.h" | ||
|
||
@implementation NSURL(Directories) | ||
|
||
+ (NSURL *) documentsDirectory { | ||
NSURL *docUrl = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; | ||
return docUrl; | ||
} | ||
|
||
@end |