-
Notifications
You must be signed in to change notification settings - Fork 0
/
346CE0B5-13E0-46E8-8FC0-6D9877E7495E.codesnippet
38 lines (36 loc) · 1.81 KB
/
346CE0B5-13E0-46E8-8FC0-6D9877E7495E.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
31
32
33
34
35
36
37
38
<?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>frc</string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>ClassImplementation</string>
</array>
<key>IDECodeSnippetContents</key>
<string>- (void)_setupFetchedResultsController
{
NSFetchRequest *fetchRequest = [NSFetchRequest fetchRequestWithEntityName:<#(NSString *)#>]
fetchRequest.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:<#(NSString *)#> ascending:<#(BOOL)#>]];
[fetchRequest.predicate = [NSPredicate predicateWithFormat:<#(NSString *), ...#>];
self.fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:<#(NSFetchRequest *)#>
managedObjectContext:<#(NSManagedObjectContext *)#>
sectionNameKeyPath:<#(NSString *)#>
cacheName:<#(NSString *)#>];
self.fetchedResultsController.delegate = <#(id <NSFetchedResultsControllerDelegate>)#>;
}</string>
<key>IDECodeSnippetIdentifier</key>
<string>346CE0B5-13E0-46E8-8FC0-6D9877E7495E</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Objective-C</string>
<key>IDECodeSnippetSummary</key>
<string>A method for setting up the fetched results controller</string>
<key>IDECodeSnippetTitle</key>
<string>Setup NSFetchedResultsController</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>