Permalink
Browse files

added a few more textfield snippets

  • Loading branch information...
1 parent 664d63e commit 0e27de6fd2e215f8df150ce7f01c08e087884de6 @malkomalko committed Nov 12, 2009
@@ -3,19 +3,19 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>var ${1:name} = [[CPTextField alloc] initWithFrame:CGRectMake(${2:0},${3:0},${4:300},${5:50})];
+ <string>var ${1:name} = [[CPTextField alloc] initWithFrame:CGRectMake(${2:0},${3:0},${4:300},${5:0})];
[$1 setStringValue:${6:@"${7:string}"}];
-${8:[$1 setEditable:${9:YES}];
-}${10:[$1 setFont:[CPFont systemFontOfSize:${11:14.0}]];
-}${12:[$1 sizeToFit];
-}[${13:parentView} addSubview:$1];
+[$1 setEditable:${8:NO}];
+[$1 setFont:[CPFont systemFontOfSize:${9:14.0}]];
+${10:[$1 sizeToFit];
+}[${11:parentView} addSubview:$1];
${0:}</string>
<key>name</key>
- <string>CPTextField</string>
+ <string>Label</string>
<key>scope</key>
<string>source.objj</string>
<key>tabTrigger</key>
- <string>tf</string>
+ <string>text</string>
<key>uuid</key>
<string>C7340B17-F9EC-403F-9781-E2487023ED01</string>
</dict>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>var ${1:name} = [CPTextField roundedTextFieldWithStringValue:@"${2}" placeholder:@"${3:Placeholder}" width:${4:200.0}];
+[$1 setFrameOrigin:CGPointMake(${5:0.0}, ${6:0.0})];
+[$1 setDelegate:${7:0.0}];
+[parentView addSubview:$1];
+${0:}</string>
+ <key>name</key>
+ <string>Rounded TextField</string>
+ <key>scope</key>
+ <string>source.objj</string>
+ <key>tabTrigger</key>
+ <string>text</string>
+ <key>uuid</key>
+ <string>3231DF41-65B6-4B4C-A9FA-F29AAB48D792</string>
+</dict>
+</plist>
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>var ${1:name} = [[CPTextField alloc] initWithFrame:CGRectMake(${2:0},${3:0},${4:150},${5:0})];
+[$1 setStringValue:${6:@"${7:string}"}];
+[$1 setEditable:YES];
+[$1 setBezeled:YES];
+[$1 setFont:[CPFont systemFontOfSize:${8:14.0}]];
+${9:[$1 sizeToFit];
+}[${10:parentView} addSubview:$1];
+${0:}</string>
+ <key>name</key>
+ <string>TextField</string>
+ <key>scope</key>
+ <string>source.objj</string>
+ <key>tabTrigger</key>
+ <string>text</string>
+ <key>uuid</key>
+ <string>79EB1435-280D-422E-BA57-712C25305EEF</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>console.log($1);</string>
+ <key>keyEquivalent</key>
+ <string>^l</string>
+ <key>name</key>
+ <string>console.log</string>
+ <key>scope</key>
+ <string>source.objj</string>
+ <key>uuid</key>
+ <string>EC56EC3D-E3F8-46A4-BEFD-B8934962B1E9</string>
+</dict>
+</plist>
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>debugger;</string>
+ <key>keyEquivalent</key>
+ <string>^d</string>
+ <key>name</key>
+ <string>debugger</string>
+ <key>scope</key>
+ <string>source.objj</string>
+ <key>uuid</key>
+ <string>0B77AF3E-D6F4-4201-AFA9-BD6003E5F44B</string>
+</dict>
+</plist>
View
@@ -4,6 +4,11 @@
<dict>
<key>mainMenu</key>
<dict>
+ <key>excludedItems</key>
+ <array>
+ <string>0B77AF3E-D6F4-4201-AFA9-BD6003E5F44B</string>
+ <string>EC56EC3D-E3F8-46A4-BEFD-B8934962B1E9</string>
+ </array>
<key>items</key>
<array>
<string>2D05A28A-2ED7-4A9A-9A5C-8625466BC77C</string>
@@ -29,6 +34,8 @@
<key>items</key>
<array>
<string>C7340B17-F9EC-403F-9781-E2487023ED01</string>
+ <string>79EB1435-280D-422E-BA57-712C25305EEF</string>
+ <string>3231DF41-65B6-4B4C-A9FA-F29AAB48D792</string>
</array>
<key>name</key>
<string>AppKit</string>
@@ -120,6 +127,8 @@
<string>AA41BEF8-5F81-4A5A-85DE-2E81A112778B</string>
<string>13D9F280-A78F-4A4C-BE99-0DE13235738D</string>
<string>C7340B17-F9EC-403F-9781-E2487023ED01</string>
+ <string>79EB1435-280D-422E-BA57-712C25305EEF</string>
+ <string>3231DF41-65B6-4B4C-A9FA-F29AAB48D792</string>
<string>8C001067-8A50-4BAB-9A88-BA957A84E8CF</string>
<string>96C39647-4346-4750-9F96-58070F24EDE6</string>
<string>0B3D4C4C-7D75-49E6-9CEC-E4BF4069223A</string>
@@ -131,6 +140,8 @@
<string>686B995F-3183-418B-A15F-CA517DFEFE2E</string>
<string>BE0553C0-B73B-4160-814C-840FC2B84C32</string>
<string>9BABD784-3DBE-4DA3-8A70-4E32FC7FDBB8</string>
+ <string>0B77AF3E-D6F4-4201-AFA9-BD6003E5F44B</string>
+ <string>EC56EC3D-E3F8-46A4-BEFD-B8934962B1E9</string>
</array>
<key>uuid</key>
<string>DB312A5F-F277-4C72-A6F7-39C9FBF6CC75</string>

0 comments on commit 0e27de6

Please sign in to comment.