Showing posts from May, 2011

xcode precompiler header

In your xcode proj. You can see a other sources group. there is a xxx_Prefix.PCH. In this *.PCH, If you write the cpp code, you should add
#if defined __cplusplus
#include "MUtils.h"

Then the precompiler header function would be worked.


Titanium Appcelerator vs. PhoneGap vs. Adobe Air

C++ template in Objective C++

Vector3D.h template(class Type)
class cMVector3D
    Type x;
    Type y;
    Type z;

    // @breif: Constructor
    cMVector3D(): x(0), y(0), z(0) {};

    // @breif: Destructor
    ~cMVector3D() {};
}; if your program is objective c  hybrid with c++, you need to rename your file ext. from *.m to *.mm.

#import "MVector3D.h"

int main(int argc, char *argv[]) {

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    cMVector3D(float)  testV;~~~template success

    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;


Google style guide

OpenGL ES Programming Guide for iOS

Fractal Lab

Fractal Lab is a WebGL based web application for rendering 2D and 3D fractal in real-time

Chrome web app and first web app

Chrome web store let you can publish your app and charge it.

Build option:
HTML5 - HTML5, CSS, JavaScriptNative Client - C/C++ code in the sandbox, with Native Client SDKAdobe Flash - depend on flash plug-inA mix - mix these technologies
The first web app:
Make a manifest.json
  write ---
  "name": "Ellison's WebApp",
  "description": "First App on the chrome web.",
  "version": "1.0",
  "app": {
    "urls": [
  "launch": {
    "web_url": ""
   "icons": {
     "128": "logo.png"
 Prepare a icon---