Permalink
Browse files

One-lining documents snippet

  • Loading branch information...
1 parent 9ee5f2c commit f14e03da98aaee124b2803d459b94268ba40fb77 @mattt mattt committed Sep 27, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 documents.m
View
@@ -4,6 +4,4 @@
// Language: Objective-C
// Completion Scope: Function or Method
-NSArray *documentsSearchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
-NSString *documentsDirectoryString = [documentsSearchPaths firstObject];
-NSURL *documentsDirectoryURL = [NSURL URLWithString:documentsDirectoryString];
+NSURL *documentsDirectoryURL = [NSURL URLWithString:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]];

0 comments on commit f14e03d

Please sign in to comment.