Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial release

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