Permalink
Browse files

Skeleton Cappuccino CIB project with README

  • Loading branch information...
0 parents commit 94e194047db91fb57326f46e24d1778b571f5d44 @benlangfeld committed Oct 17, 2010
Showing with 220 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +29 −0 AppController.j
  3. BIN Icon.png
  4. +12 −0 Info.plist
  5. +3 −0 Project.atlasproj
  6. +9 −0 README.md
  7. +1 −0 Resources/MainMenu.cib
  8. BIN Resources/spinner.gif
  9. +69 −0 index-debug.html
  10. +68 −0 index.html
  11. +18 −0 main.j
  12. +5 −0 template.config
@@ -0,0 +1,6 @@
+Frameworks/AppKit
+Frameworks/Foundation
+Frameworks/Objective-J
+Frameworks/Debug/AppKit
+Frameworks/Debug/Foundation
+Frameworks/Debug/Objective-J
@@ -0,0 +1,29 @@
+/*
+ * AppController.j
+ * CappuccinoTalk
+ *
+ * Created by Ben Langfeld on October 17, 2010.
+ * Copyright 2010, MyStudioTools Ltd All rights reserved.
+ */
+
+@import <Foundation/CPObject.j>
+
+
+@implementation AppController : CPObject
+{
+ @outlet CPWindow theWindow; //this "outlet" is connected automatically by the Cib
+}
+
+- (void)applicationDidFinishLaunching:(CPNotification)aNotification
+{
+ // This is called when the application is done loading.
+}
+
+- (void)awakeFromCib
+{
+ // This is called when the cib is done loading.
+ // You can implement this method on any object instantiated from a Cib.
+ // It's a useful hook for setting up current UI values, and other things.
+}
+
+@end
BIN Icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Main cib file base name</key>
+ <string>MainMenu.cib</string>
+ <key>CPBundleName</key>
+ <string>CappuccinoTalk</string>
+ <key>CPPrincipalClass</key>
+ <string>CPApplication</string>
+</dict>
+</plist>
@@ -0,0 +1,3 @@
+{
+ name: "NibApp"
+}
@@ -0,0 +1,9 @@
+# CappuccinoTalk
+
+## What is CappuccinoTalk ?
+
+CappuccinoTalk is a Jabber/XMPP client built using the [Cappuccino](http://cappuccino.org) framework. It is inspired by [Psi](http://psi-im.org/), uses [StropheCappuccino](http://github.com/primalmotion/strophecappuccino) and provides some features interesting for XMPP developers.
+
+## Quick Start
+
+You will need to symlink or copy the Cappuccino frameworks into Frameworks/ - development is currently running off the Cappuccino master branch.

Large diffs are not rendered by default.

Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en" lang = "en">
+<!--
+ index-debug.html
+ CappuccinoTalk
+
+ Created by Ben Langfeld on October 17, 2010.
+ Copyright 2010, MyStudioTools Ltd All rights reserved.
+-->
+ <head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
+
+ <title>CappuccinoTalk</title>
+
+ <script type = "text/javascript">
+ OBJJ_MAIN_FILE = "main.j";
+ OBJJ_INCLUDE_PATHS = ["Frameworks/Debug", "Frameworks", "SomethingElse"];
+ </script>
+
+ <script src = "Frameworks/Debug/Objective-J/Objective-J.js" type = "text/javascript"></script>
+
+ <style type = "text/css">
+ body{margin:0; padding:0;}
+ #container {position: absolute; top:50%; left:50%;}
+ #content {width:800px; text-align:center; margin-left: -400px; height:50px; margin-top:-25px; line-height: 50px;}
+ #content {font-family: "Helvetica", "Arial", sans-serif; font-size: 18px; color: black; text-shadow: 0px 1px 0px white; }
+ #loadgraphic {margin-right: 0.2em; margin-bottom:-2px;}
+ </style>
+
+ <!--[if lt IE 7]>
+ <STYLE type="text/css">
+ #container { position: relative; top: 50%; }
+ #content { position: relative;}
+ </STYLE>
+ <![endif]-->
+
+ </head>
+
+ <body style="">
+ <div id="loadingcontainer" style=" background-color: #eeeeee; overflow:hidden; width:100%; height:100%; position: absolute; top: 0; left: 0;">
+ <script type = "text/javascript">
+ document.write("<div id='container'><p id='content'>" +
+ "<img id='loadgraphic' width='16' height='16' src='Resources/spinner.gif' /> " +
+ "Loading CappuccinoTalk...</p></div>");
+ </script>
+
+ <noscript>
+ <div id="container">
+ <div style="width: 440px; padding: 10px 25px 20px 25px; font-family: sans-serif; background-color: #ffffff; position: relative; left: -245px; top: -120px; text-align: center; -moz-border-radius: 20px; -webkit-border-radius: 20px; color: #555555">
+ <p style="line-height: 1.4em;">JavaScript is required for this site to work correctly but is either disabled or not supported by your browser.</p>
+ <p style="font-size:120%; padding:10px;"><a href="http://cappuccino.org/noscript">Show me how to enable JavaScript</a></p>
+ <p style="font-size:80%;">You may want to upgrade to a newer browser while you're at it:</p>
+ <ul style="margin:0;padding:0; text-align: center; font-size:80%;" >
+ <li style="display: inline;"><a href="http://www.apple.com/safari/download/">Safari</a></li>
+ <li style="display: inline;"><a href="http://www.mozilla.com/en-US/firefox/">Firefox</a></li>
+ <li style="display: inline;"><a href="http://www.google.com/chrome/">Chrome</a></li>
+ <li style="display: inline;"><a href="http://www.opera.com/download/">Opera</a></li>
+ <li style="display: inline;"><a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx">Internet Explorer</a></li>
+ </ul>
+ </div>
+ </div>
+ </noscript>
+ </div>
+ </body>
+
+</html>
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en" lang = "en">
+<!--
+ index.html
+ CappuccinoTalk
+
+ Created by Ben Langfeld on October 17, 2010.
+ Copyright 2010, MyStudioTools Ltd All rights reserved.
+-->
+ <head>
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
+
+ <title>CappuccinoTalk</title>
+
+ <script type = "text/javascript">
+ OBJJ_MAIN_FILE = "main.j";
+ </script>
+
+ <script src = "Frameworks/Objective-J/Objective-J.js" type = "text/javascript"></script>
+
+ <style type = "text/css">
+ body{margin:0; padding:0;}
+ #container {position: absolute; top:50%; left:50%;}
+ #content {width:800px; text-align:center; margin-left: -400px; height:50px; margin-top:-25px; line-height: 50px;}
+ #content {font-family: "Helvetica", "Arial", sans-serif; font-size: 18px; color: black; text-shadow: 0px 1px 0px white; }
+ #loadgraphic {margin-right: 0.2em; margin-bottom:-2px;}
+ </style>
+
+ <!--[if lt IE 7]>
+ <STYLE type="text/css">
+ #container { position: relative; top: 50%; }
+ #content { position: relative;}
+ </STYLE>
+ <![endif]-->
+
+ </head>
+
+ <body style="">
+ <div id="loadingcontainer" style=" background-color: #eeeeee; overflow:hidden; width:100%; height:100%; position: absolute; top: 0; left: 0;">
+ <script type = "text/javascript">
+ document.write("<div id='container'><p id='content'>" +
+ "<img id='loadgraphic' width='16' height='16' src='Resources/spinner.gif' /> " +
+ "Loading CappuccinoTalk...</p></div>");
+ </script>
+
+ <noscript>
+ <div id="container">
+ <div style="width: 440px; padding: 10px 25px 20px 25px; font-family: sans-serif; background-color: #ffffff; position: relative; left: -245px; top: -120px; text-align: center; -moz-border-radius: 20px; -webkit-border-radius: 20px; color: #555555">
+ <p style="line-height: 1.4em;">JavaScript is required for this site to work correctly but is either disabled or not supported by your browser.</p>
+ <p style="font-size:120%; padding:10px;"><a href="http://cappuccino.org/noscript">Show me how to enable JavaScript</a></p>
+ <p style="font-size:80%;">You may want to upgrade to a newer browser while you're at it:</p>
+ <ul style="margin:0;padding:0; text-align: center; font-size:80%;" >
+ <li style="display: inline;"><a href="http://www.apple.com/safari/download/">Safari</a></li>
+ <li style="display: inline;"><a href="http://www.mozilla.com/en-US/firefox/">Firefox</a></li>
+ <li style="display: inline;"><a href="http://www.google.com/chrome/">Chrome</a></li>
+ <li style="display: inline;"><a href="http://www.opera.com/download/">Opera</a></li>
+ <li style="display: inline;"><a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx">Internet Explorer</a></li>
+ </ul>
+ </div>
+ </div>
+ </noscript>
+ </div>
+ </body>
+
+</html>
18 main.j
@@ -0,0 +1,18 @@
+/*
+ * AppController.j
+ * CappuccinoTalk
+ *
+ * Created by Ben Langfeld on October 17, 2010.
+ * Copyright 2010, MyStudioTools Ltd All rights reserved.
+ */
+
+@import <Foundation/Foundation.j>
+@import <AppKit/AppKit.j>
+
+@import "AppController.j"
+
+
+function main(args, namedArgs)
+{
+ CPApplicationMain(args, namedArgs);
+}
@@ -0,0 +1,5 @@
+{
+ "FrameworksPath" : "",
+ "name" : "Cib App",
+ "description" : "Simple, cib based, client side only project. Includes MainMenu.cib for setting up an initial user interface."
+}

0 comments on commit 94e1940

Please sign in to comment.