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,14 @@
# -*- mode: snippet -*-
# key: arracc
# contributor: Translated from TextMate Snippet
# name: Interface: Accessors for KVC Array
## condition: "source.objc meta.scope.interface, source.objc++ meta.scope.interface"
# --
- (void)addObjectTo${1:Things}:(${2:id})anObject;
- (void)insertObject:($2)anObject in$1AtIndex:(unsigned int)i;
- ($2)objectIn$1AtIndex:(unsigned int)i;
- (unsigned int)indexOfObjectIn$1:($2)anObject;
- (void)removeObjectFrom$1AtIndex:(unsigned int)i;
- (unsigned int)countOf$1;
- (NSArray${TM_C_POINTER/(^(.+?)\s*$)?/(?1:$2: *)/})${1/./\l$0/};
- (void)set$1:(NSArray${TM_C_POINTER/(^(.+?)\s*$)?/(?1:$2: *)/})new$1;