Click here to Skip to main content
15,895,746 members
Articles / All Topics

Creating an Xcode Project Template

Rate me:
Please Sign up or sign in to vote.
4.57/5 (6 votes)
13 Sep 2010CPOL2 min read 48.9K   8  
How to create an Xcode project template
//
//  ___PROJECTNAME___AppDelegate.h
//  ___PROJECTNAME___
//
//  Created by pi on 13/08/2010.
//

#import <UIKit/UIKit.h>

@class ___PROJECTNAME___ViewController;

@interface ___PROJECTNAME___AppDelegate : NSObject <UIApplicationDelegate> {
    UIWindow *window;
    ___PROJECTNAME___ViewController *viewController;
}

/* I used the ' view based application ' template to create this project. The IBOutlet 
 token tells Xcode to look to the .XIB for creating these objects -- the .XIB would 
 have all sorts of information such as size, whether to show the status bar etc.
 
 Anyway, IBOutlet can be taken out now, as I have removed the .XIB.  It wouldn't hurt 
 to leave it there as it is an empty #define, but that would be bad form. */ 

@property (nonatomic, retain) /*IBOutlet*/ UIWindow *window;
@property (nonatomic, retain) /*IBOutlet*/ ___PROJECTNAME___ViewController *viewController;

@end

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United Kingdom United Kingdom
I like to create and invent things. Recent projects include: A novel computer interface (Google for JediPad), a new musical system (www.toneme.org), a speech typer (http://spascii.wikispaces.com/)

Currently I am making some innovative musical instruments for iPhone/iPad

PS Currently stranded in Thailand with no money! Great! So, if you like my articles, please consider putting some coins in the box. If I have to sell my MacBook and teach in a school, that means No More Articles! PayPal is sunfish7&gmail!com. Steve Jobbs -- if you're reading this, pay me to fix your documentation.

Comments and Discussions