From ac45382833ceb0ed17b7559c4c3cfa45c5cf011e Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Mon, 13 Apr 2009 20:50:05 -0400 Subject: [PATCH] fixed a typo in Obj-C snippets and added another snippet --- snippets/objc.snippets | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/snippets/objc.snippets b/snippets/objc.snippets index 1fb6f15..790f72e 100644 --- a/snippets/objc.snippets +++ b/snippets/objc.snippets @@ -10,6 +10,9 @@ snippet sel # @"..." string snippet s @"${1}"${2} +# Object +snippet o + ${1:NSObject} *${2:foo} = [${3:$1 alloc}];${5} # NSLog(...) snippet log NSLog(@"${1}"${2});${3} @@ -136,11 +139,10 @@ snippet fora ${4} } snippet forarray - unsigned int ${1:object}Count = [${2:array} count]; + unsigned int ${1:object}Count = [${2:array} count]; - for (unsigned int index = 0; index < $1Count; index++) - { - ${3:id} $1 = [$2 $1AtIndex:index]; + for (unsigned int index = 0; index < $1Count; index++) { + ${3:id} $1 = [$2 $1AtIndex:index]; ${4} } # IBOutlet