forked from cocos2d/cocos2d-objc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Xcode 4 "File" templates both for iOS and Mac
- Loading branch information
1 parent
5daa2a9
commit ec5c265
Showing
11 changed files
with
157 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
templates/Xcode4_templates/CCNode class.xctemplate/CCLayer/___FILEBASENAME___.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// ___FILENAME___ | ||
// ___PROJECTNAME___ | ||
// | ||
// Created by ___FULLUSERNAME___ on ___DATE___. | ||
// Copyright ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "cocos2d.h" | ||
|
||
@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocos2DSubclass___ { | ||
|
||
} | ||
|
||
@end |
14 changes: 14 additions & 0 deletions
14
templates/Xcode4_templates/CCNode class.xctemplate/CCLayer/___FILEBASENAME___.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// ___FILENAME___ | ||
// ___PROJECTNAME___ | ||
// | ||
// Created by ___FULLUSERNAME___ on ___DATE___. | ||
// Copyright ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. | ||
// | ||
|
||
#import "___FILEBASENAME___.h" | ||
|
||
|
||
@implementation ___FILEBASENAMEASIDENTIFIER___ | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
templates/Xcode4_templates/CCNode class.xctemplate/CCNode/___FILEBASENAME___.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// ___FILENAME___ | ||
// ___PROJECTNAME___ | ||
// | ||
// Created by ___FULLUSERNAME___ on ___DATE___. | ||
// Copyright ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "cocos2d.h" | ||
|
||
@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocos2DSubclass___ { | ||
|
||
} | ||
|
||
@end |
14 changes: 14 additions & 0 deletions
14
templates/Xcode4_templates/CCNode class.xctemplate/CCNode/___FILEBASENAME___.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// ___FILENAME___ | ||
// ___PROJECTNAME___ | ||
// | ||
// Created by ___FULLUSERNAME___ on ___DATE___. | ||
// Copyright ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. | ||
// | ||
|
||
#import "___FILEBASENAME___.h" | ||
|
||
|
||
@implementation ___FILEBASENAMEASIDENTIFIER___ | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
templates/Xcode4_templates/CCNode class.xctemplate/CCSprite/___FILEBASENAME___.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// ___FILENAME___ | ||
// ___PROJECTNAME___ | ||
// | ||
// Created by ___FULLUSERNAME___ on ___DATE___. | ||
// Copyright ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "cocos2d.h" | ||
|
||
@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocos2DSubclass___ { | ||
|
||
} | ||
|
||
@end |
14 changes: 14 additions & 0 deletions
14
templates/Xcode4_templates/CCNode class.xctemplate/CCSprite/___FILEBASENAME___.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// ___FILENAME___ | ||
// ___PROJECTNAME___ | ||
// | ||
// Created by ___FULLUSERNAME___ on ___DATE___. | ||
// Copyright ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. | ||
// | ||
|
||
#import "___FILEBASENAME___.h" | ||
|
||
|
||
@implementation ___FILEBASENAMEASIDENTIFIER___ | ||
|
||
@end |
Binary file not shown.
50 changes: 50 additions & 0 deletions
50
templates/Xcode4_templates/CCNode class.xctemplate/TemplateInfo.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?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> | ||
</array> | ||
<key>DefaultCompletionName</key> | ||
<string>MyCocos2DClass</string> | ||
<key>Description</key> | ||
<string>An Objective-C class, with a header that includes the <Foundation/Foundation.h> and "cocos2d.h" headers.</string> | ||
<key>Kind</key> | ||
<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string> | ||
<key>MainTemplateFile</key> | ||
<string>___FILEBASENAME___.m</string> | ||
<key>Options</key> | ||
<array> | ||
<dict> | ||
<key>Default</key> | ||
<string>CCNode</string> | ||
<key>Description</key> | ||
<string>What class to subclass in the new file</string> | ||
<key>Identifier</key> | ||
<string>cocos2DSubclass</string> | ||
<key>Name</key> | ||
<string>Subclass of</string> | ||
<key>Required</key> | ||
<string>YES</string> | ||
<key>Type</key> | ||
<string>combo</string> | ||
<key>Values</key> | ||
<array> | ||
<string>CCNode</string> | ||
<string>CCLayer</string> | ||
<string>CCSprite</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>Platforms</key> | ||
<array> | ||
<string>com.apple.platform.iphoneos</string> | ||
<string>com.apple.platform.macosx</string> | ||
</array> | ||
<key>SortOrder</key> | ||
<string>1</string> | ||
<key>Summary</key> | ||
<string>An Objective-C class with a header</string> | ||
</dict> | ||
</plist> |