]> code.delx.au - gnu-emacs-elpa/blob - snippets/objc-mode/prop
Keep snippet vars definitions in a single format across all snippets and documentation.
[gnu-emacs-elpa] / snippets / objc-mode / prop
1 # name: foo { ... } ; setFoo { ... }
2 # key: prop
3 # --
4 - (${1:id})${2:foo}
5 {
6 return $2;
7 }
8
9 - (void)set${2:$(capitalize text)}:($1)aValue
10 {
11 [$2 autorelease];
12 $2 = [aValue retain];
13 }
14 $0