Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

initial release

  • Loading branch information...
commit c6de9be13c7d65274096e5ad20cc8cef6c3eeb2f 0 parents
Oliver Letterer authored
21 .gitignore
... ... @@ -0,0 +1,21 @@
  1 +# xcode noise
  2 +*.mode1v3
  3 +*.pbxuser
  4 +*.perspective
  5 +*.perspectivev3
  6 +*.pyc
  7 +*~.nib/
  8 +build/
  9 +xcuserdata/
  10 +xcuserdata/*
  11 +*.xcuserdatad/
  12 +
  13 +# Textmate - if you build your xcode projects with it
  14 +*.tm_build_errors
  15 +
  16 +# old skool
  17 +.svn
  18 +
  19 +# osx noise
  20 +.DS_Store
  21 +profile
26 02230535-8588-462E-AA33-0ED0BB5372A1.codesnippet
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>pragmaMarkComment</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>ClassImplementation</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>#pragma mark - &lt;#comment#&gt;</string>
  13 + <key>IDECodeSnippetIdentifier</key>
  14 + <string>02230535-8588-462E-AA33-0ED0BB5372A1</string>
  15 + <key>IDECodeSnippetLanguage</key>
  16 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  17 + <key>IDECodeSnippetSummary</key>
  18 + <string>praga mark comment</string>
  19 + <key>IDECodeSnippetTitle</key>
  20 + <string>praga mark comment</string>
  21 + <key>IDECodeSnippetUserSnippet</key>
  22 + <true/>
  23 + <key>IDECodeSnippetVersion</key>
  24 + <integer>2</integer>
  25 +</dict>
  26 +</plist>
26 072BDE17-3C77-437F-AFAB-A63F9069A853.codesnippet
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>@synthesizeProperty</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>ClassImplementation</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>@synthesize &lt;#property#&gt;=_&lt;#propertyIvar#&gt;;</string>
  13 + <key>IDECodeSnippetIdentifier</key>
  14 + <string>072BDE17-3C77-437F-AFAB-A63F9069A853</string>
  15 + <key>IDECodeSnippetLanguage</key>
  16 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  17 + <key>IDECodeSnippetSummary</key>
  18 + <string>synthesize property</string>
  19 + <key>IDECodeSnippetTitle</key>
  20 + <string>synthesize property</string>
  21 + <key>IDECodeSnippetUserSnippet</key>
  22 + <true/>
  23 + <key>IDECodeSnippetVersion</key>
  24 + <integer>2</integer>
  25 +</dict>
  26 +</plist>
28 19810FBF-A053-47E5-B209-5968D14AB7CA.codesnippet
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>case</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>CodeBlock</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>case &lt;#constant#&gt;:
  13 + &lt;#statements#&gt;
  14 + break;</string>
  15 + <key>IDECodeSnippetIdentifier</key>
  16 + <string>19810FBF-A053-47E5-B209-5968D14AB7CA</string>
  17 + <key>IDECodeSnippetLanguage</key>
  18 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  19 + <key>IDECodeSnippetSummary</key>
  20 + <string>case statement</string>
  21 + <key>IDECodeSnippetTitle</key>
  22 + <string>case statement</string>
  23 + <key>IDECodeSnippetUserSnippet</key>
  24 + <true/>
  25 + <key>IDECodeSnippetVersion</key>
  26 + <integer>2</integer>
  27 +</dict>
  28 +</plist>
29 2CFE1273-CB44-40FA-B2C2-9E6799403598.codesnippet
... ... @@ -0,0 +1,29 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>comment class</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>TopLevel</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>/**
  13 + @class &lt;#class#&gt;
  14 + @abstract &lt;#abstract comment#&gt;
  15 + */</string>
  16 + <key>IDECodeSnippetIdentifier</key>
  17 + <string>2CFE1273-CB44-40FA-B2C2-9E6799403598</string>
  18 + <key>IDECodeSnippetLanguage</key>
  19 + <string>Xcode.SourceCodeLanguage.Objective-C-Plus-Plus</string>
  20 + <key>IDECodeSnippetSummary</key>
  21 + <string>class comment</string>
  22 + <key>IDECodeSnippetTitle</key>
  23 + <string>comment class</string>
  24 + <key>IDECodeSnippetUserSnippet</key>
  25 + <true/>
  26 + <key>IDECodeSnippetVersion</key>
  27 + <integer>0</integer>
  28 +</dict>
  29 +</plist>
28 31B9172E-28CD-4C82-8E23-21DC05FA804B.codesnippet
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>else if</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>CodeExpression</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>else if (&lt;#condition#&gt;) {
  13 + &lt;#statements#&gt;
  14 + }</string>
  15 + <key>IDECodeSnippetIdentifier</key>
  16 + <string>31B9172E-28CD-4C82-8E23-21DC05FA804B</string>
  17 + <key>IDECodeSnippetLanguage</key>
  18 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  19 + <key>IDECodeSnippetSummary</key>
  20 + <string>else if statement</string>
  21 + <key>IDECodeSnippetTitle</key>
  22 + <string>else if statement</string>
  23 + <key>IDECodeSnippetUserSnippet</key>
  24 + <true/>
  25 + <key>IDECodeSnippetVersion</key>
  26 + <integer>2</integer>
  27 +</dict>
  28 +</plist>
26 401253A7-5CAB-44ED-B277-CAD0A9782421.codesnippet
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>delegate property</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>ClassInterfaceMethods</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>@property (nonatomic, unsafe_unretained) id&lt;&lt;#protocol#&gt;&gt; delegate;</string>
  13 + <key>IDECodeSnippetIdentifier</key>
  14 + <string>401253A7-5CAB-44ED-B277-CAD0A9782421</string>
  15 + <key>IDECodeSnippetLanguage</key>
  16 + <string>Xcode.SourceCodeLanguage.Objective-C-Plus-Plus</string>
  17 + <key>IDECodeSnippetSummary</key>
  18 + <string>unsafe_unretained delegate property</string>
  19 + <key>IDECodeSnippetTitle</key>
  20 + <string>delegate property</string>
  21 + <key>IDECodeSnippetUserSnippet</key>
  22 + <true/>
  23 + <key>IDECodeSnippetVersion</key>
  24 + <integer>2</integer>
  25 +</dict>
  26 +</plist>
28 73635AFE-DF8D-41F6-8D74-7BE5637832B3.codesnippet
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>else</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>CodeExpression</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>else {
  13 + &lt;#statements#&gt;
  14 + }</string>
  15 + <key>IDECodeSnippetIdentifier</key>
  16 + <string>73635AFE-DF8D-41F6-8D74-7BE5637832B3</string>
  17 + <key>IDECodeSnippetLanguage</key>
  18 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  19 + <key>IDECodeSnippetSummary</key>
  20 + <string>else statement</string>
  21 + <key>IDECodeSnippetTitle</key>
  22 + <string>else statement</string>
  23 + <key>IDECodeSnippetUserSnippet</key>
  24 + <true/>
  25 + <key>IDECodeSnippetVersion</key>
  26 + <integer>2</integer>
  27 +</dict>
  28 +</plist>
32 95352661-F791-428E-B8CB-7160A30D42A7.codesnippet
... ... @@ -0,0 +1,32 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>UIAlertViewDirect</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>CodeBlock</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"&lt;#title#&gt;", @"")
  13 + message:NSLocalizedString(@"&lt;#message#&gt;", @"")
  14 + delegate:&lt;#delegate#&gt;
  15 + cancelButtonTitle:NSLocalizedString(@"&lt;#cancel#&gt;", @"")
  16 + otherButtonTitles:NSLocalizedString(@"&lt;#button#&gt;", @""), nil]
  17 + autorelease];
  18 +[alert show];</string>
  19 + <key>IDECodeSnippetIdentifier</key>
  20 + <string>95352661-F791-428E-B8CB-7160A30D42A7</string>
  21 + <key>IDECodeSnippetLanguage</key>
  22 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  23 + <key>IDECodeSnippetSummary</key>
  24 + <string>Show a UIAlertView directly</string>
  25 + <key>IDECodeSnippetTitle</key>
  26 + <string>Direct Show UIAlertView</string>
  27 + <key>IDECodeSnippetUserSnippet</key>
  28 + <true/>
  29 + <key>IDECodeSnippetVersion</key>
  30 + <integer>2</integer>
  31 +</dict>
  32 +</plist>
28 9CF7B6CC-C5CB-4A61-ABE0-45FF579EFC43.codesnippet
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>setter nonatomic</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>CodeBlock</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>if (&lt;#variable#&gt; != _&lt;#variable#&gt;) {
  13 + _&lt;#variable#&gt; = &lt;#variable#&gt;;
  14 +}</string>
  15 + <key>IDECodeSnippetIdentifier</key>
  16 + <string>9CF7B6CC-C5CB-4A61-ABE0-45FF579EFC43</string>
  17 + <key>IDECodeSnippetLanguage</key>
  18 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  19 + <key>IDECodeSnippetSummary</key>
  20 + <string>nonatomic fast setter</string>
  21 + <key>IDECodeSnippetTitle</key>
  22 + <string>setter nonatomic</string>
  23 + <key>IDECodeSnippetUserSnippet</key>
  24 + <true/>
  25 + <key>IDECodeSnippetVersion</key>
  26 + <integer>2</integer>
  27 +</dict>
  28 +</plist>
29 A9A46810-DF30-48D9-8E83-0FC6FC187D1A.codesnippet
... ... @@ -0,0 +1,29 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>comment property</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>ClassInterfaceMethods</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>/**
  13 + @property &lt;#property name#&gt;
  14 + @abstract &lt;#abstract explanation#&gt;
  15 + */</string>
  16 + <key>IDECodeSnippetIdentifier</key>
  17 + <string>A9A46810-DF30-48D9-8E83-0FC6FC187D1A</string>
  18 + <key>IDECodeSnippetLanguage</key>
  19 + <string>Xcode.SourceCodeLanguage.Objective-C-Plus-Plus</string>
  20 + <key>IDECodeSnippetSummary</key>
  21 + <string>comment definition for property</string>
  22 + <key>IDECodeSnippetTitle</key>
  23 + <string>comment property</string>
  24 + <key>IDECodeSnippetUserSnippet</key>
  25 + <true/>
  26 + <key>IDECodeSnippetVersion</key>
  27 + <integer>0</integer>
  28 +</dict>
  29 +</plist>
29 AD93CF62-B2FA-43C0-94EF-59579D4FE7BA.codesnippet
... ... @@ -0,0 +1,29 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>comment method</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>ClassInterfaceMethods</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>/**
  13 + @method &lt;#method name#&gt;
  14 + @abstract &lt;#abstract comment#&gt;
  15 + */</string>
  16 + <key>IDECodeSnippetIdentifier</key>
  17 + <string>AD93CF62-B2FA-43C0-94EF-59579D4FE7BA</string>
  18 + <key>IDECodeSnippetLanguage</key>
  19 + <string>Xcode.SourceCodeLanguage.Objective-C-Plus-Plus</string>
  20 + <key>IDECodeSnippetSummary</key>
  21 + <string>comment on a method</string>
  22 + <key>IDECodeSnippetTitle</key>
  23 + <string>comment method</string>
  24 + <key>IDECodeSnippetUserSnippet</key>
  25 + <true/>
  26 + <key>IDECodeSnippetVersion</key>
  27 + <integer>0</integer>
  28 +</dict>
  29 +</plist>
27 CB58E927-15E6-4FA6-B1B0-E393FEB6648A.codesnippet
... ... @@ -0,0 +1,27 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>@propertyStrong</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>ClassInterfaceMethods</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>@property (nonatomic, strong) &lt;#type#&gt; *&lt;#name#&gt;;
  13 +</string>
  14 + <key>IDECodeSnippetIdentifier</key>
  15 + <string>CB58E927-15E6-4FA6-B1B0-E393FEB6648A</string>
  16 + <key>IDECodeSnippetLanguage</key>
  17 + <string>Xcode.SourceCodeLanguage.Objective-C-Plus-Plus</string>
  18 + <key>IDECodeSnippetSummary</key>
  19 + <string>Property strong</string>
  20 + <key>IDECodeSnippetTitle</key>
  21 + <string>Property strong</string>
  22 + <key>IDECodeSnippetUserSnippet</key>
  23 + <true/>
  24 + <key>IDECodeSnippetVersion</key>
  25 + <integer>2</integer>
  26 +</dict>
  27 +</plist>
28 D17B6371-1821-48DD-9A51-F39596C94013.codesnippet
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>dispatch_asyncMainQueue</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>CodeBlock</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>dispatch_async(dispatch_get_main_queue(), ^(void) {
  13 + &lt;#code#&gt;
  14 + });</string>
  15 + <key>IDECodeSnippetIdentifier</key>
  16 + <string>D17B6371-1821-48DD-9A51-F39596C94013</string>
  17 + <key>IDECodeSnippetLanguage</key>
  18 + <string>Xcode.SourceCodeLanguage.Objective-C</string>
  19 + <key>IDECodeSnippetSummary</key>
  20 + <string>dispatch_async to main queue</string>
  21 + <key>IDECodeSnippetTitle</key>
  22 + <string>dispatch_async to main queue</string>
  23 + <key>IDECodeSnippetUserSnippet</key>
  24 + <true/>
  25 + <key>IDECodeSnippetVersion</key>
  26 + <integer>2</integer>
  27 +</dict>
  28 +</plist>
26 E240CB05-6817-4683-ABF6-F2A2D40F4004.codesnippet
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDECodeSnippetCompletionPrefix</key>
  6 + <string>@propertyAssign</string>
  7 + <key>IDECodeSnippetCompletionScopes</key>
  8 + <array>
  9 + <string>ClassInterfaceMethods</string>
  10 + </array>
  11 + <key>IDECodeSnippetContents</key>
  12 + <string>@property (nonatomic, assign) &lt;#type#&gt; *&lt;#name#&gt;;</string>
  13 + <key>IDECodeSnippetIdentifier</key>
  14 + <string>E240CB05-6817-4683-ABF6-F2A2D40F4004</string>
  15 + <key>IDECodeSnippetLanguage</key>
  16 + <string>Xcode.SourceCodeLanguage.Objective-C-Plus-Plus</string>
  17 + <key>IDECodeSnippetSummary</key>
  18 + <string>property assign</string>
  19 + <key>IDECodeSnippetTitle</key>
  20 + <string>property assign</string>
  21 + <key>IDECodeSnippetUserSnippet</key>
  22 + <true/>
  23 + <key>IDECodeSnippetVersion</key>
  24 + <integer>2</integer>
  25 +</dict>
  26 +</plist>
5 README.md
Source Rendered
... ... @@ -0,0 +1,5 @@
  1 +# CodeSnippets
  2 +Useful set of Xcode 4 Code Snippets.
  3 +
  4 +## Installation
  5 +Clone this repository into `~/Library/Developer/Xcode/UserData/CodeSnippets/`

0 comments on commit c6de9be

Please sign in to comment.
Something went wrong with that request. Please try again.