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,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;
|
||||
Reference in New Issue
Block a user