-
Notifications
You must be signed in to change notification settings - Fork 30
/
objc_getDocumentsDirectory.codesnippet
30 lines (30 loc) · 1.14 KB
/
objc_getDocumentsDirectory.codesnippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string>documents</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>CodeBlock</string>
</array>
<key>IDECodeSnippetContents</key>
<string>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"<#fileName#>"];</string>
<key>IDECodeSnippetIdentifier</key>
<string>5D5547B6-84D8-4B0D-88CE-5680D8095581</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetPlatformFamily</key>
<string>iphoneos</string>
<key>IDECodeSnippetSummary</key>
<string>Create path to documents directory</string>
<key>IDECodeSnippetTitle</key>
<string>Get Documents directory</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>