mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-03-21 23:32:26 +00:00
adding objc-snippets
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: array
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: NSArray
|
||||
## condition: "source.objc, source.objc++"
|
||||
# --
|
||||
NSMutableArray${TM_C_POINTER: *}${1:array} = [NSMutableArray array];
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: dict
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: NSDictionary
|
||||
## condition: "source.objc, source.objc++"
|
||||
# --
|
||||
NSMutableDictionary${TM_C_POINTER: *}${1:dict} = [NSMutableDictionary dictionary];
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: bez
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: NSBezierPath
|
||||
## condition: "source.objc, source.objc++"
|
||||
# --
|
||||
NSBezierPath${TM_C_POINTER: *}${1:path} = [NSBezierPath bezierPath];
|
||||
$0
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: format
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: NSString With Format
|
||||
## condition: "source.objc, source.objc++"
|
||||
# --
|
||||
[NSString stringWithFormat:@"$1", $2]$0
|
||||
Reference in New Issue
Block a user