adding objc-snippets

This commit is contained in:
capitaomorte
2010-03-14 15:30:22 +00:00
parent c11379e768
commit efa4d6e481
52 changed files with 547 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# key: responds
# contributor: Translated from TextMate Snippet
# name: Responds to Selector
## condition: "source.objc, source.objc++"
# --
${TM_COMMENT_START} ${4:Send $2 to $1, if $1 supports it}${TM_COMMENT_END}
if ([${1:self} respondsToSelector:@selector(${2:someSelector:})])
{
[$1 ${3:${2/((:\s*$)|(:\s*))/:<>(?3: )/g}}];
}