mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-05 23:12:26 +00:00
adding objc-snippets
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: forarray
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: NSArray Loop
|
||||
## condition: "source.objc, source.objc++"
|
||||
# --
|
||||
unsigned int ${1:object}Count = [${2:array} count];
|
||||
|
||||
for(unsigned int index = 0; index < ${1}Count; index += 1)
|
||||
{
|
||||
${3:id} ${1} = [$2 objectAtIndex:index];
|
||||
$0
|
||||
}
|
||||
Reference in New Issue
Block a user