Permalink
Browse files

Added default template files.

  • Loading branch information...
0 parents commit 0704cfdf5ba23b9a8ef012827f0b43adffb2424d @tomaz committed Apr 15, 2010
Showing 444 changed files with 78,298 additions and 0 deletions.
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!File Templates
+!Project Templates
@@ -0,0 +1,5 @@
+{
+ MainTemplateFile = "class.m";
+ "CounterpartTemplateFile" = "class.h";
+ Description = "An Objective-C class which is a subclass of GBViewController, with an optional header file which includes the \"GBViewController.h\" header and designated initializer.";
+}
@@ -0,0 +1,29 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+#import "GBViewController.h"
+
+@interface «FILEBASENAMEASIDENTIFIER» : GBViewController
+{
+
+}
+
+///---------------------------------------------------------------------------------------
+/// @name Initialization & disposal
+///---------------------------------------------------------------------------------------
+
+/** Initializes the view controller.
+
+ This is the designated initializer.
+
+ @param parent View controller's @c WindowControllerBase parent.
+ @return Returns initialized object or @c nil if initialization fails.
+ */
+- (id) initWithWindowController:(GBWindowController*)parent;
+
+@end
@@ -0,0 +1,27 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+«OPTIONALHEADERIMPORTLINE»
+@implementation «FILEBASENAMEASIDENTIFIER»
+
+#pragma mark Initialization & disposal
+
+- (id) initWithWindowController:(GBWindowController*)parent
+{
+ logDebug(@"Initializing...");
+ self = [super initWithNibName:@"ReplaceWithViewNibName!" bundle:nil windowController:parent];
+ return self;
+}
+
+- (void) invalidate
+{
+ logDebug(@"Invalidating...");
+ [super invalidate];
+}
+
+@end
@@ -0,0 +1,5 @@
+{
+ MainTemplateFile = "class.m";
+ "CounterpartTemplateFile" = "class.h";
+ Description = "An Objective-C class which is a subclass of GBWindowController, with an optional header file which includes the \"GBWindowController.h\" header and designated initializer.";
+}
@@ -0,0 +1,16 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+#import "GBWindowController.h"
+
+@interface «FILEBASENAMEASIDENTIFIER» : GBWindowController
+{
+
+}
+
+@end
@@ -0,0 +1,27 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+«OPTIONALHEADERIMPORTLINE»
+@implementation «FILEBASENAMEASIDENTIFIER»
+
+#pragma mark Initialization & disposal
+
+- (id) init
+{
+ logDebug(@"Initializing...");
+ self = [super initWithWindowNibName:@"ReplaceWithWindowNibName!"];
+ return self;
+}
+
+- (void) invalidate
+{
+ logDebug(@"Invalidating...");
+ [super invalidate];
+}
+
+@end
@@ -0,0 +1,5 @@
+{
+ MainTemplateFile = "class.m";
+ CounterpartTemplateFile = "class.h";
+ Description = "An Objective-C class which is a subclass of NSDocument, with an optional header file which includes the <Cocoa/Cocoa.h> header.";
+}
@@ -0,0 +1,16 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface «FILEBASENAMEASIDENTIFIER» : NSDocument
+{
+
+}
+
+@end
@@ -0,0 +1,40 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+«OPTIONALHEADERIMPORTLINE»
+@implementation «FILEBASENAMEASIDENTIFIER»
+
+- (NSString*) windowNibName
+{
+ // Implement this to return a nib to load OR implement -makeWindowControllers to manually create your controllers.
+ return @"«FILEBASENAMEASIDENTIFIER»";
+}
+
+- (NSData*) dataOfType:(NSString*)typeName error:(NSError**)outError
+{
+ // Insert code here to write your document to data of the specified type. If the given outError != NULL, ensure that you set *outError when returning nil.
+
+ // You can also choose to override -fileWrapperOfType:error:, -writeToURL:ofType:error:, or -writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead.
+
+ // For applications targeted for Panther or earlier systems, you should use the deprecated API -dataRepresentationOfType:. In this case you can also choose to override -fileWrapperRepresentationOfType: or -writeToFile:ofType: instead.
+
+ return nil;
+}
+
+- (BOOL) readFromData:(NSData*)data ofType:(NSString*)typeName error:(NSError**)outError
+{
+ // Insert code here to read your document from the given data of the specified type. If the given outError != NULL, ensure that you set *outError when returning NO.
+
+ // You can also choose to override -readFromFileWrapper:ofType:error: or -readFromURL:ofType:error: instead.
+
+ // For applications targeted for Panther or earlier systems, you should use the deprecated API -loadDataRepresentation:ofType. In this case you can also choose to override -readFromFile:ofType: or -loadFileWrapperRepresentation:ofType: instead.
+
+ return YES;
+}
+
+@end
@@ -0,0 +1,5 @@
+{
+ MainTemplateFile = "class.m";
+ CounterpartTemplateFile = "class.h";
+ Description = "An Objective-C class which is a subclass of NSView, with an optional header file which includes the <Cocoa/Cocoa.h> header.";
+}
@@ -0,0 +1,16 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface «FILEBASENAMEASIDENTIFIER» : NSView
+{
+
+}
+
+@end
@@ -0,0 +1,27 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+«OPTIONALHEADERIMPORTLINE»
+@implementation «FILEBASENAMEASIDENTIFIER»
+
+- (id) initWithFrame:(NSRect)frame
+{
+ self = [super initWithFrame:frame];
+ if (self)
+ {
+ // Initialization code here.
+ }
+ return self;
+}
+
+- (void) drawRect:(NSRect)dirtyRect
+{
+ // Drawing code here.
+}
+
+@end
@@ -0,0 +1,5 @@
+{
+ MainTemplateFile = "class.m";
+ CounterpartTemplateFile = "class.h";
+ Description = "An Objective-C class file, with an optional header which includes the <Cocoa/Cocoa.h> header.";
+}
@@ -0,0 +1,16 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface «FILEBASENAMEASIDENTIFIER» : NSObject
+{
+
+}
+
+@end
@@ -0,0 +1,12 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR», «ORGANIZATIONNAME». All rights reserved.
+//
+
+«OPTIONALHEADERIMPORTLINE»
+@implementation «FILEBASENAMEASIDENTIFIER»
+
+@end
@@ -0,0 +1,56 @@
+<?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>OptionsLabel</key>
+ <string>Subclass of</string>
+ <key>PopupMenu</key>
+ <array>
+ <dict>
+ <key>Key</key>
+ <string>Obj</string>
+ <key>Title</key>
+ <string>NSObject</string>
+ </dict>
+ <dict>
+ <key>Key</key>
+ <string>Doc</string>
+ <key>Title</key>
+ <string>NSDocument</string>
+ </dict>
+ <dict>
+ <key>Key</key>
+ <string>View</string>
+ <key>Title</key>
+ <string>NSView</string>
+ </dict>
+ <dict>
+ <key>Key</key>
+ <string>WinController</string>
+ <key>Title</key>
+ <string>GBWindowController</string>
+ </dict>
+ <dict>
+ <key>Key</key>
+ <string>ViewController</string>
+ <key>Title</key>
+ <string>GBViewController</string>
+ </dict>
+ </array>
+ <key>TemplateSelection</key>
+ <dict>
+ <key></key>
+ <string>Objective-C class</string>
+ <key>ViewController</key>
+ <string>Objective-C GBViewController subclass</string>
+ <key>WinController</key>
+ <string>Objective-C GBWindowController subclass</string>
+ <key>Doc</key>
+ <string>Objective-C NSDocument subclass</string>
+ <key>Obj</key>
+ <string>Objective-C class</string>
+ <key>View</key>
+ <string>Objective-C NSView subclass</string>
+ </dict>
+</dict>
+</plist>
@@ -0,0 +1,4 @@
+{
+ MainTemplateFile = "class.m";
+ Description = "An Objective-C class containing an GBDatabaseTestingBase test case (without header) which includes the \"GBDatabaseTestingBase.h\", <OCHamcrest/OCHamcrest.h> and <OCMock/OCMock.h> headers.";
+}
@@ -0,0 +1,19 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR» «ORGANIZATIONNAME». All rights reserved.
+//
+
+#import "GBDatabaseTestingBase.h"
+
+@interface «FILEBASENAMEASIDENTIFIER» : GBDatabaseTestingBase
+
+@end
+
+#pragma mark -
+
+@implementation «FILEBASENAMEASIDENTIFIER»
+
+@end
@@ -0,0 +1,5 @@
+{
+ MainTemplateFile = "class.m";
+ "CounterpartTemplateFile" = "class.h";
+ Description = "An Objective-C class containing an GBDatabaseTestingBase test case (with optional header) which includes the \"GBDatabaseTestingBase.h\", <OCHamcrest/OCHamcrest.h> and <OCMock/OCMock.h> headers.";
+}
@@ -0,0 +1,16 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR» «ORGANIZATIONNAME». All rights reserved.
+//
+
+#import "GBDatabaseTestingBase.h"
+
+@interface «FILEBASENAMEASIDENTIFIER» : GBDatabaseTestingBase
+{
+
+}
+
+@end
@@ -0,0 +1,14 @@
+//
+// «FILENAME»
+// «PROJECTNAME»
+//
+// Created by «FULLUSERNAME» on «DATE».
+// Copyright (C) «YEAR» «ORGANIZATIONNAME». All rights reserved.
+//
+
+#define HC_SHORTHAND
+#import <OCHamcrest/OCHamcrest.h>
+«OPTIONALHEADERIMPORTLINE»
+@implementation «FILEBASENAMEASIDENTIFIER»
+
+@end
Oops, something went wrong.

0 comments on commit 0704cfd

Please sign in to comment.