Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions log_error.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// log error
// log error
//
// IDECodeSnippetCompletionPrefix: dde
// IDECodeSnippetCompletionScopes: [CodeBlock]
// IDECodeSnippetIdentifier: 11BB3538-E850-48CA-AAD7-C60C46CFFD52
// IDECodeSnippetLanguage: Xcode.SourceCodeLanguage.C
// IDECodeSnippetUserSnippet: 1
// IDECodeSnippetVersion: 1

DDLogError(@"%s: error=%@", __FUNCTION__, error.localizedDescription);
17 changes: 17 additions & 0 deletions log_header.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// log header
// log header
//
// IDECodeSnippetCompletionPrefix: ddh
// IDECodeSnippetCompletionScopes: [CodeBlock]
// IDECodeSnippetIdentifier: 11BB3538-E850-48CA-AAD7-C60C46CFFD51
// IDECodeSnippetLanguage: Xcode.SourceCodeLanguage.C
// IDECodeSnippetUserSnippet: 1
// IDECodeSnippetVersion: 1

#import <CocoaLumberjack/CocoaLumberjack.h>

#ifdef DEBUG
static const int ddLogLevel = DDLogLevelInfo;
#else
static const int ddLogLevel = DDLogLevelError;
#endif
11 changes: 11 additions & 0 deletions log_warning.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// log warning
// log warning
//
// IDECodeSnippetCompletionPrefix: ddw
// IDECodeSnippetCompletionScopes: [CodeBlock]
// IDECodeSnippetIdentifier: 11BB3538-E850-48CA-AAD7-C60C46CFFD53
// IDECodeSnippetLanguage: Xcode.SourceCodeLanguage.C
// IDECodeSnippetUserSnippet: 1
// IDECodeSnippetVersion: 1

DDLogWarning(@"%s: error=%@", __FUNCTION__, error.localizedDescription);
10 changes: 10 additions & 0 deletions strong_self.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// strong self
// Strong self reference
//
// IDECodeSnippetCompletionPrefix: strongSelf
// IDECodeSnippetCompletionScopes: [CodeBlock]
// IDECodeSnippetIdentifier: 717F5611-AC63-43D6-BB9A-4F68F1551103
// IDECodeSnippetLanguage: Xcode.SourceCodeLanguage.Objective-C
// IDECodeSnippetUserSnippet: 1
// IDECodeSnippetVersion: 2
typeof(weakSelf) strongSelf = weakSelf;