emacs-prelude/vendor/yasnippet/snippets/objc-mode/prop
2012-02-17 22:12:32 +02:00

14 lines
No EOL
194 B
Text

# name: foo { ... } ; setFoo { ... }
# key: prop
# --
- (${1:id})${2:foo}
{
return $2;
}
- (void)set${2:$(capitalize text)}:($1)aValue
{
[$2 autorelease];
$2 = [aValue retain];
}
$0