On this page, you can experiment with Objective-C. Write your code and then click "Run". If your code is syntactically correct, it will be executed in the canvas below the text box. When you click "Run", the Objective-C code will be trans-compiled into Javascript and executed within the browser. We support only a subset of Objective-C, i.e. well-formed code may cause syntax errors. You must provide the name of your main class which contains the +(void)main method. You can define more classes, however all @interface declarations must precede all @implementations. A (rather small) subset of the Foundation framework is supported, see http://code.google.com/p/cocoawebtoolkit/ for more information. Please report bugs and/or feature requests: http://code.google.com/p/cocoawebtoolkit/issues/list. The code was tested only in Safari and Chrome!

Main class: