mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 14:32:26 +00:00
adding objc-snippets
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: I
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Method: Initialize
|
||||
## condition: "(source.objc | source.objc++) & meta.scope.implementation.objc - meta.function-with-body"
|
||||
# --
|
||||
+ (void)initialize
|
||||
{
|
||||
[[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
$0@"value", @"key",
|
||||
nil]];
|
||||
}
|
||||
Reference in New Issue
Block a user