Skip to content

Commit

Permalink
Update snippet to use fileURL instead of URL
Browse files Browse the repository at this point in the history
I was having issues with this returning nil, changing the method to fileURLWithPath fixed it.
  • Loading branch information
WestonHanners committed Jun 30, 2014
1 parent 3724210 commit 7f9bb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documents.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
// Language: Objective-C
// Completion Scope: Function or Method

NSURL *documentsDirectoryURL = [NSURL URLWithString:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]];
NSURL *documentsDirectoryURL = [NSURL fileURLWithPath:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]];

0 comments on commit 7f9bb97

Please sign in to comment.