MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 3 as of 2013-07-26 18:27:13
  • Javascript
  • Cappuccino

Cappuccino

Cappuccino is a framework which makes it easy to create advanced web apps. http://www.cappuccino-project.org/

Objective-J is a powerful object-oriented language which compiles to run in the browser.

Init String, CPString

   1 var str1 = [CPString initWithString: @""];
   2 var str2 = [CPString initWithString: @""];

Mutable Array

   1 @import <Foundation/CPMutableArray.j>
   2 
   3 var arrayX = [[CPMutableArray alloc] init]; 

Callbacks

   1 @implementation TestObject : CPObject
   2 {
   3 }
   4 
   5 -(void)helloWorld{
   6   CPLogConsole("Called hello world");
   7 }
   8 
   9 //--------------------
  10 var selectorHelloWorld =  @selector(helloWorld) ;
  11 var signature = [self methodSignatureForSelector: aSelector];
  12 var invocation = [CPInvocation invocationWithMethodSignature:signature];
  13 [invocation setSelector: selectorHelloWorld];
  14 [invocation invokeWithTarget: self]; //self -> instance of TestObject
  15 
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01