iphone 3d programming : clean project
来源:互联网 发布:python arma模型 编辑:程序博客网 时间:2024/04/30 19:51
Optional: Creating a Clean Slate
The following steps remove some Interface Builder odds and ends from the project;
this is optional, but it’s something I like to do to start from a clean slate.
1. Interface Builder uses an XML file called a xib for defining an object graph of UI
elements. Since you’re creating a pure OpenGL application, you don’t need this
file in your project. In the Groups & Files pane on the left, find the folder that says
Resources (or something similar such as Resources-iPhone). Delete the file ending
in .xib. When prompted, move it to the trash.
2. The xib file normally compiles to a binary file called a nib, which is loaded at runtime
to build up the UI. To instruct the OS not to load the nib file, you’ll need to
remove an application property. In the Resources folder, find the HelloArrow-
Info.plist file. Click it and then remove the property called Main nib file base
name (toward the bottom of the Information Property List). You can remove a
property by clicking to select it and then pressing the Delete key.
3. The template application normally extracts the name of the application delegate
from the nib file during startup; since you’re not using a nib file, you need to pass
in an explicit string. Under Other Sources, open main.m, and change the last argument
of the call to UIApplicationMain from nil to the name of your application
delegate class (for example, @"HelloArrowAppDelegate"). The @ prefix means this is
a proper Objective-C string rather than a C-style pointer to char.
4. The template includes a property in the application delegate that allows Interface
Builder to hook in. This is no longer needed. To remove the property declaration,
open HelloArrowAppDelegate.h (in the Classes folder), and remove the
@property line. To remove the implementation, open HelloArrowAppDelegate.m,
and remove the @synthesize line.
The following steps remove some Interface Builder odds and ends from the project;
this is optional, but it’s something I like to do to start from a clean slate.
1. Interface Builder uses an XML file called a xib for defining an object graph of UI
elements. Since you’re creating a pure OpenGL application, you don’t need this
file in your project. In the Groups & Files pane on the left, find the folder that says
Resources (or something similar such as Resources-iPhone). Delete the file ending
in .xib. When prompted, move it to the trash.
2. The xib file normally compiles to a binary file called a nib, which is loaded at runtime
to build up the UI. To instruct the OS not to load the nib file, you’ll need to
remove an application property. In the Resources folder, find the HelloArrow-
Info.plist file. Click it and then remove the property called Main nib file base
name (toward the bottom of the Information Property List). You can remove a
property by clicking to select it and then pressing the Delete key.
3. The template application normally extracts the name of the application delegate
from the nib file during startup; since you’re not using a nib file, you need to pass
in an explicit string. Under Other Sources, open main.m, and change the last argument
of the call to UIApplicationMain from nil to the name of your application
delegate class (for example, @"HelloArrowAppDelegate"). The @ prefix means this is
a proper Objective-C string rather than a C-style pointer to char.
4. The template includes a property in the application delegate that allows Interface
Builder to hook in. This is no longer needed. To remove the property declaration,
open HelloArrowAppDelegate.h (in the Classes folder), and remove the
@property line. To remove the implementation, open HelloArrowAppDelegate.m,
and remove the @synthesize line.
- iphone 3d programming : clean project
- iPhone Open Source Project - Bullet 3D Game
- 3D programming reference
- Eclipse project -> clean 作用
- eclipse工程clean project
- eclipse -->project-->clean作用
- eclipse -->project-->clean作用
- eclipse -->project-->clean作用
- eclipse-->project-->clean 作用
- eclipse -->project-->clean作用
- Clean Project 作用
- myeclipse->project->clean作用
- iphone 3d game
- iphone 3D Touch
- 3D Game Engine Programming
- Pro OGRE 3D Programming
- 3D programming with Klimt
- eclipse->project->clean 做用
- JSP设计模式
- 第一篇博客
- OpenGL ES Shading Language : array
- 时空数据模型
- 设计模式一(工厂方法、抽象工厂、单例)
- iphone 3d programming : clean project
- 链表的应用:计算每个作业的运行时间
- java mail 邮件验证 五
- 设计模式二(建造者、原型、桥接)
- NET多线程与异步编程
- 数字三角形 (动态规划与递归)
- dijkstra O(n2) 算法模版
- 基于S5PC100的FIMC的部分解释——一篇让我理解透彻2440和S5PV210 摄像头camera控制器的文章
- GetProcessWorkingSetSize function