Mac Daddy World ยป Blog Archive ยป Adventures in Cocotron

The Promise

The promise of Cocotron is a big one. Wrote a Cocoa app? Just add a new Xcode target, hit compile and out shoots a Windows version. Your mountains of Objective-C code now cross compiles and is no longer stranded on the Mac. You put your feet up, having just shipped a Windows app without ever touching a PC. Your cat brings you a freshly brewed cup of coffee. Read on for our journey from app to exe

 

This entry was posted

on Monday, October 27th, 2008 at 12:17 pm

and is filed under Cocoa, Objective-C, iPhone.

You can follow any responses to this entry through the RSS 2.0 feed.

You can skip to the end and leave a response. Pinging is currently not allowed.

 

frothkit – Project Hosting on Google Code

Froth is a Objective-C web application framework that brings the power and simplicity of Cocoa development to the web.

While froth web apps are technically deployable on many different platforms using Cocotron, currently our focus has been on the Amazon EC2 cloud.

Benefits of Froth

  • Uses the tools and language Mac and iPhone developers have come to know and love.
  • Reuse existing objc/c code from desktop applications.
  • Simple view templating support.
  • Very fast and scalable.
  • Affordable hosting on Amazon EC2 Cloud.
  • Multiple builds and deployments using standard Xcode deployments.

Simple Example

@interface WAHelloController : WebActiveController {}

// http://myexample.com/hello
(id)index๐Ÿ˜ฆWebRequest*)req;

// http://example.com/goodbye
(id)goodbyeAction๐Ÿ˜ฆWebRequest*)req;

@end

@implementation WAHelloController

(id)index๐Ÿ˜ฆWebRequest*)req {
       
return @“Hello World”;
}

(id)goodbyeAction๐Ÿ˜ฆWebRequest*)req {
       
return @“Goodbye”;
}

@end

Some Docs

Background Information

Whats next?

We are working on a installer package and public amazon ami that will enable developers to get started in minutes. For now check out the source and keep coming back as we add more documentation and tutorials.

is this any good?