Permalink
Browse files

Added File Templates

  • Loading branch information...
1 parent 3adac32 commit a7b54e0802995961dfb7c096c1c17da79b523f6c @AliSoftware committed Oct 4, 2012
Showing with 1,055 additions and 0 deletions.
  1. +40 −0 File Templates/AliSoftware/Objective-C class.xctemplate/NSObject/___FILEBASENAME___.h
  2. +78 −0 File Templates/AliSoftware/Objective-C class.xctemplate/NSObject/___FILEBASENAME___.m
  3. BIN File Templates/AliSoftware/Objective-C class.xctemplate/TemplateIcon.icns
  4. +91 −0 File Templates/AliSoftware/Objective-C class.xctemplate/TemplateInfo.plist
  5. +47 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UITableViewCell/___FILEBASENAME___.h
  6. +103 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UITableViewCell/___FILEBASENAME___.m
  7. +124 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UITableViewCell/___FILEBASENAME___.xib
  8. +40 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UIView/___FILEBASENAME___.h
  9. +93 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UIView/___FILEBASENAME___.m
  10. +45 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UIViewController/___FILEBASENAME___.h
  11. +106 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UIViewController/___FILEBASENAME___.m
  12. +1 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UIViewControllerWithXIB/___FILEBASENAME___.h
  13. +1 −0 File Templates/AliSoftware/Objective-C class.xctemplate/UIViewControllerWithXIB/___FILEBASENAME___.m
  14. +108 −0 ...Templates/AliSoftware/Objective-C class.xctemplate/UIViewControllerWithXIB/___FILEBASENAME___.xib
  15. BIN File Templates/AliSoftware/Objective-C singleton.xctemplate/TemplateIcon.icns
  16. +44 −0 File Templates/AliSoftware/Objective-C singleton.xctemplate/TemplateInfo.plist
  17. +41 −0 File Templates/AliSoftware/Objective-C singleton.xctemplate/___FILEBASENAME___.h
  18. +88 −0 File Templates/AliSoftware/Objective-C singleton.xctemplate/___FILEBASENAME___.m
  19. +5 −0 File Templates/README.md
@@ -0,0 +1,40 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Imports
+
+___IMPORTHEADER_cocoaTouchSubclass___
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Types
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Defines & Constants
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Macros
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Interface
+
+@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
+
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Properties
+
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Class Methods
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Instance Methods
+
+
+@end
@@ -0,0 +1,78 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Imports
+
+#import "___FILEBASENAME___.h"
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Types
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Defines & Constants
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Macros
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Private Interface
+@interface ___FILEBASENAMEASIDENTIFIER___ ()
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Private Properties
+
+@end
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Implementation
+
+@implementation ___FILEBASENAMEASIDENTIFIER___
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Synthesize
+
+/* Public *********************************************************************/
+
+/* Private ********************************************************************/
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Setup & Teardown
+
+- (id)init
+{
+ self = [super init];
+ if (self)
+ {
+
+ }
+ return self;
+}
+
+- (void)dealloc
+{
+ [super dealloc];
+}
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Superclass Overrides
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Public methods
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Private methods
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Actions
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - XXXDataSource / XXXDelegate methods
+
+
+@end
@@ -0,0 +1,91 @@
+<?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>AllowedTypes</key>
+ <array>
+ <string>public.objective-c-source</string>
+ <string>public.objective-c-plus-plus-source</string>
+ </array>
+ <key>DefaultCompletionName</key>
+ <string>MyClass</string>
+ <key>Description</key>
+ <string>An Objective-C class, with implementation and header files.</string>
+ <key>Kind</key>
+ <string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
+ <key>MainTemplateFile</key>
+ <string>___FILEBASENAME___.m</string>
+ <key>Options</key>
+ <array>
+ <dict>
+ <key>Description</key>
+ <string>The name of the class to create</string>
+ <key>Identifier</key>
+ <string>productName</string>
+ <key>Name</key>
+ <string>Class name</string>
+ <key>NotPersisted</key>
+ <true/>
+ <key>Required</key>
+ <true/>
+ <key>Type</key>
+ <string>text</string>
+ </dict>
+ <dict>
+ <key>Default</key>
+ <string>NSObject</string>
+ <key>Description</key>
+ <string>What class to subclass in the new file</string>
+ <key>FallbackHeader</key>
+ <string>#import &lt;UIKit/UIKit.h&gt;</string>
+ <key>Identifier</key>
+ <string>cocoaTouchSubclass</string>
+ <key>Name</key>
+ <string>Subclass of</string>
+ <key>Required</key>
+ <string>YES</string>
+ <key>Suffixes</key>
+ <dict>
+ <key>UIViewController</key>
+ <string>ViewController</string>
+ <key>UIView</key>
+ <string>View</string>
+ </dict>
+ <key>Type</key>
+ <string>class</string>
+ <key>Values</key>
+ <array>
+ <string>NSObject</string>
+ <string>UIView</string>
+ <string>UIViewController</string>
+ <string>UITableViewCell</string>
+ </array>
+ </dict>
+ <dict>
+ <key>Default</key>
+ <true/>
+ <key>Identifier</key>
+ <string>WithXIB</string>
+ <key>Name</key>
+ <string>Use XIB file for user interface</string>
+ <key>RequiredOptions</key>
+ <dict>
+ <key>cocoaTouchSubclass</key>
+ <array>
+ <string>UIViewController</string>
+ </array>
+ </dict>
+ <key>Type</key>
+ <string>checkbox</string>
+ </dict>
+ </array>
+ <key>Platforms</key>
+ <array>
+ <string>com.apple.platform.iphoneos</string>
+ </array>
+ <key>SortOrder</key>
+ <string>1</string>
+ <key>Summary</key>
+ <string>An Objective-C class with a header for Cocoa Touch</string>
+</dict>
+</plist>
@@ -0,0 +1,47 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Imports
+
+___IMPORTHEADER_cocoaTouchSubclass___
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Types
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Defines & Constants
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Constants
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Macros
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Interface
+
+@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Properties
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Outlets
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Class Methods
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Instance Methods
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Actions
+
+
+@end
@@ -0,0 +1,103 @@
+//
+// ___FILENAME___
+// ___PROJECTNAME___
+//
+// Created by ___FULLUSERNAME___ on ___DATE___.
+// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
+//
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Imports
+
+#import "___FILEBASENAME___.h"
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Types
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Defines & Constants
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Macros
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Private Interface
+
+@interface ___FILEBASENAMEASIDENTIFIER___ ()
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Private Properties
+
+@end
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Implementation
+
+@implementation ___FILEBASENAMEASIDENTIFIER___
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Synthesize
+
+/* Outlets ********************************************************************/
+
+/* Public *********************************************************************/
+
+/* Private ********************************************************************/
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Setup & Teardown
+
+- (void)commonInit___FILEBASENAMEASIDENTIFIER___
+{
+ // Your common initialization code here
+}
+
+- (id)initWithCoder:(NSCoder *)aDecoder
+{
+ self = [super initWithCoder:aDecoder];
+ if (self)
+ {
+ [self commonInit___FILEBASENAMEASIDENTIFIER___];
+ }
+ return self;
+}
+- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString*)reuseIdentifier
+{
+ self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
+ if (self)
+ {
+ [self commonInit___FILEBASENAMEASIDENTIFIER___];
+ }
+ return self;
+}
+
+- (void)dealloc
+{
+ // Your code here
+
+ [super dealloc];
+}
+
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Superclass Overrides
+
+- (void)setSelected:(BOOL)selected animated:(BOOL)animated
+{
+ [super setSelected:selected animated:animated];
+
+ // Configure the view for the selected state
+}
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Public methods
+
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Private methods
+
+////////////////////////////////////////////////////////////////////////////////
+#pragma mark - Actions
+
+
+@end
Oops, something went wrong.

0 comments on commit a7b54e0

Please sign in to comment.