mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-23 10:50:42 +00:00
Deploying to gh-pages from @ cappuccino/cappuccino@28303a7893 🚀
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* AppController.j
|
||||
* TreeControllerBindingsTest
|
||||
*
|
||||
* Created for testing CPOutlineView and CPTreeController bindings.
|
||||
*/
|
||||
|
||||
@import <AppKit/AppKit.j>
|
||||
@import <AppKit/CPTreeController.j>
|
||||
|
||||
@implementation AppController : CPObject
|
||||
{
|
||||
CPTreeController treeController;
|
||||
CPTextField logField;
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
||||
{
|
||||
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
|
||||
contentView = [theWindow contentView];
|
||||
|
||||
// 1. Create the Data Model
|
||||
var root1 = [[Node alloc] initWithName:@"Root 1" children:[]],
|
||||
child1 = [[Node alloc] initWithName:@"Child 1.1" children:[]],
|
||||
child2 = [[Node alloc] initWithName:@"Child 1.2" children:[]],
|
||||
root2 = [[Node alloc] initWithName:@"Root 2" children:[]],
|
||||
child3 = [[Node alloc] initWithName:@"Child 2.1" children:[]];
|
||||
|
||||
[root1 setChildren:[child1, child2]];
|
||||
[root2 setChildren:[child3]];
|
||||
var contentArray = [root1, root2];
|
||||
|
||||
// 2. Setup the Tree Controller
|
||||
treeController = [[CPTreeController alloc] init];
|
||||
[treeController setChildrenKeyPath:@"children"];
|
||||
[treeController setContent:contentArray];
|
||||
|
||||
// 3. Setup the Outline View
|
||||
var scrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(20, 20, 250, 300)];
|
||||
[scrollView setAutohidesScrollers:YES];
|
||||
|
||||
var outlineView = [[CPOutlineView alloc] initWithFrame:CGRectMake(0, 0, 250, 300)];
|
||||
var column = [[CPTableColumn alloc] initWithIdentifier:@"name"];
|
||||
[[column headerView] setStringValue:@"Node Name"];
|
||||
[column setWidth:240];
|
||||
[column setEditable:YES]; // Editable to test bidirectional bindings in the tree
|
||||
|
||||
[outlineView addTableColumn:column];
|
||||
[outlineView setOutlineTableColumn:column];
|
||||
[outlineView setAllowsMultipleSelection:YES];
|
||||
[scrollView setDocumentView:outlineView];
|
||||
[contentView addSubview:scrollView];
|
||||
|
||||
// 4. Establish Bindings for the Outline View
|
||||
[outlineView bind:@"content" toObject:treeController withKeyPath:@"arrangedObjects" options:nil];
|
||||
[outlineView bind:@"selectionIndexPaths" toObject:treeController withKeyPath:@"selectionIndexPaths" options:nil];
|
||||
|
||||
var scrollView2 = [[CPScrollView alloc] initWithFrame:CGRectMake(300, 20, 250, 300)];
|
||||
[scrollView2 setAutohidesScrollers:YES];
|
||||
var outlineView2 = [[CPOutlineView alloc] initWithFrame:CGRectMake(0, 0, 250, 300)];
|
||||
var column2 = [[CPTableColumn alloc] initWithIdentifier:@"name"];
|
||||
[[column2 headerView] setStringValue:@"Node Name"];
|
||||
[column2 setWidth:240];
|
||||
[column2 setEditable:YES]; // Editable to test bidirectional bindings in the tree
|
||||
|
||||
[outlineView2 addTableColumn:column2];
|
||||
[outlineView2 setOutlineTableColumn:column2];
|
||||
[outlineView2 setAllowsMultipleSelection:YES];
|
||||
[scrollView2 setDocumentView:outlineView2];
|
||||
[contentView addSubview:scrollView2];
|
||||
|
||||
// 4. Establish Bindings for the Outline View
|
||||
[outlineView2 bind:@"content" toObject:treeController withKeyPath:@"arrangedObjects" options:nil];
|
||||
[outlineView2 bind:@"selectionIndexPaths" toObject:treeController withKeyPath:@"selectionIndexPaths" options:nil];
|
||||
|
||||
|
||||
|
||||
[theWindow orderFront:self];
|
||||
}
|
||||
|
||||
- (void)selectSpecificNode:(id)sender
|
||||
{
|
||||
// Programmatically select index path [0, 1] which is "Child 1.2"
|
||||
// This tests the `_CPOutlineViewSelectionIndexPathsBinder` auto-expand logic.
|
||||
var path =[CPIndexPath indexPathWithIndexes:[0, 1]];
|
||||
[treeController setSelectionIndexPath:path];
|
||||
}
|
||||
|
||||
- (void)observeValueForKeyPath:(CPString)keyPath ofObject:(id)object change:(CPDictionary)change context:(id)context
|
||||
{
|
||||
if (keyPath === @"selectionIndexPaths")
|
||||
{
|
||||
var selectedObjects = [treeController selectedObjects];
|
||||
if ([selectedObjects count] > 0)
|
||||
{
|
||||
var names = [CPMutableArray array];
|
||||
for (var i = 0; i <[selectedObjects count]; i++)
|
||||
[names addObject:[selectedObjects[i] name]];[logField setStringValue:[names componentsJoinedByString:@", "]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[logField setStringValue:@"Nothing selected"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
// --- Custom Data Model ---
|
||||
|
||||
@implementation Node : CPObject
|
||||
{
|
||||
CPString name;
|
||||
CPArray children;
|
||||
}
|
||||
|
||||
- (id)initWithName:(CPString)aName children:(CPArray)someChildren
|
||||
{
|
||||
self = [super init];
|
||||
if (self)
|
||||
{
|
||||
name = aName;
|
||||
children = someChildren;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
// Explicit accessors to ensure Key-Value Observing (KVO) works flawlessly.
|
||||
- (void)setName:(CPString)aName
|
||||
{
|
||||
[self willChangeValueForKey:@"name"];
|
||||
name = aName;[self didChangeValueForKey:@"name"];
|
||||
}
|
||||
|
||||
- (CPString)name
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
- (void)setChildren:(CPArray)someChildren
|
||||
{
|
||||
[self willChangeValueForKey:@"children"];
|
||||
children = someChildren;
|
||||
[self didChangeValueForKey:@"children"];
|
||||
}
|
||||
|
||||
- (CPArray)children
|
||||
{
|
||||
return children;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -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>CPApplicationDelegateClass</key>
|
||||
<string>AppController</string>
|
||||
<key>CPBundleName</key>
|
||||
<string>treecontroller</string>
|
||||
<key>CPPrincipalClass</key>
|
||||
<string>CPApplication</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Jakefile
|
||||
* tooltips
|
||||
*
|
||||
* Created by You on April 26, 2011.
|
||||
* Copyright 2011, Your Company All rights reserved.
|
||||
*/
|
||||
|
||||
var ENV = require("system").env,
|
||||
FILE = require("file"),
|
||||
JAKE = require("jake"),
|
||||
task = JAKE.task,
|
||||
FileList = JAKE.FileList,
|
||||
app = require("cappuccino/jake").app,
|
||||
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug",
|
||||
OS = require("os");
|
||||
|
||||
app ("tooltips", function(task)
|
||||
{
|
||||
task.setBuildIntermediatesPath(FILE.join("Build", "tooltips.build", configuration));
|
||||
task.setBuildPath(FILE.join("Build", configuration));
|
||||
|
||||
task.setProductName("tooltips");
|
||||
task.setIdentifier("com.yourcompany.tooltips");
|
||||
task.setVersion("1.0");
|
||||
task.setAuthor("Your Company");
|
||||
task.setEmail("feedback @nospam@ yourcompany.com");
|
||||
task.setSummary("tooltips");
|
||||
task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**")));
|
||||
task.setResources(new FileList("Resources/**"));
|
||||
task.setIndexFilePath("index.html");
|
||||
task.setInfoPlistPath("Info.plist");
|
||||
|
||||
if (configuration === "Debug")
|
||||
task.setCompilerFlags("-DDEBUG -g");
|
||||
else
|
||||
task.setCompilerFlags("-O");
|
||||
});
|
||||
|
||||
task ("default", ["tooltips"], function()
|
||||
{
|
||||
printResults(configuration);
|
||||
});
|
||||
|
||||
task ("build", ["default"]);
|
||||
|
||||
task ("debug", function()
|
||||
{
|
||||
ENV["CONFIGURATION"] = "Debug";
|
||||
JAKE.subjake(["."], "build", ENV);
|
||||
});
|
||||
|
||||
task ("release", function()
|
||||
{
|
||||
ENV["CONFIGURATION"] = "Release";
|
||||
JAKE.subjake(["."], "build", ENV);
|
||||
});
|
||||
|
||||
task ("run", ["debug"], function()
|
||||
{
|
||||
OS.system(["open", FILE.join("Build", "Debug", "tooltips", "index.html")]);
|
||||
});
|
||||
|
||||
task ("run-release", ["release"], function()
|
||||
{
|
||||
OS.system(["open", FILE.join("Build", "Release", "tooltips", "index.html")]);
|
||||
});
|
||||
|
||||
task ("deploy", ["release"], function()
|
||||
{
|
||||
FILE.mkdirs(FILE.join("Build", "Deployment", "tooltips"));
|
||||
OS.system(["press", "-f", FILE.join("Build", "Release", "tooltips"), FILE.join("Build", "Deployment", "tooltips")]);
|
||||
printResults("Deployment")
|
||||
});
|
||||
|
||||
task ("desktop", ["release"], function()
|
||||
{
|
||||
FILE.mkdirs(FILE.join("Build", "Desktop", "tooltips"));
|
||||
require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "tooltips"), FILE.join("Build", "Desktop", "tooltips", "tooltips.app"));
|
||||
printResults("Desktop")
|
||||
});
|
||||
|
||||
task ("run-desktop", ["desktop"], function()
|
||||
{
|
||||
OS.system([FILE.join("Build", "Desktop", "tooltips", "tooltips.app", "Contents", "MacOS", "NativeHost"), "-i"]);
|
||||
});
|
||||
|
||||
function printResults(configuration)
|
||||
{
|
||||
print("----------------------------");
|
||||
print(configuration+" app built at path: "+FILE.join("Build", configuration, "tooltips"));
|
||||
print("----------------------------");
|
||||
}
|
||||
@@ -0,0 +1,204 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<!--
|
||||
index-debug.html
|
||||
__project.name__
|
||||
|
||||
Created by __user.name__ on __project.date__.
|
||||
Copyright __project.year__, __organization.name__ All rights reserved.
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<!--[if lte IE 8]>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, chrome=1">
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<![endif]-->
|
||||
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="apple-touch-icon" href="Resources/icon.png">
|
||||
<link rel="apple-touch-startup-image" href="Resources/default.png">
|
||||
|
||||
<title>__project.name__</title>
|
||||
|
||||
<!-- Custom javascript goes here -->
|
||||
<!-- End custom javascript -->
|
||||
|
||||
<script type="text/javascript">
|
||||
OBJJ_MAIN_FILE = "main.j";
|
||||
OBJJ_INCLUDE_PATHS = ["Frameworks/Debug", "Frameworks"];
|
||||
// The below will tell the compiler to generate debug symbols, type signatures and not inline objj_msgSend functions.
|
||||
// This will affect only Objective-J code that is compiled when loading the application. It will not affect precompiled
|
||||
// code like the Cappuccino frameworks.
|
||||
//
|
||||
// Debug symbols will give each Objective-J method a Javascript function name. Without a name it will be very hard to find
|
||||
// the methods in the debugger.
|
||||
// Type Signatures will give type information to the Objective-J runtime for instance variables and methods.
|
||||
// Inline objj_msgSend will give a speed increase but decorators will not work. Check below on debug options for
|
||||
// more information on decorators.
|
||||
//
|
||||
// Uncomment or comment on the line below to change the flags
|
||||
OBJJ_COMPILER_FLAGS = ["IncludeDebugSymbols", "IncludeTypeSignatures", "SourceMap", "InlineMsgSend"];
|
||||
|
||||
var progressBar = null;
|
||||
|
||||
OBJJ_PROGRESS_CALLBACK = function(percent, appSize, path)
|
||||
{
|
||||
percent = percent * 100;
|
||||
|
||||
if (!progressBar)
|
||||
progressBar = document.getElementById("progress-bar");
|
||||
|
||||
if (progressBar)
|
||||
progressBar.style.width = Math.min(percent, 100) + "%";
|
||||
}
|
||||
|
||||
var loadingHTML =
|
||||
'<div id="loading">' +
|
||||
' <div id="loading-text">Loading...</div>' +
|
||||
' <div id="progress-indicator">' +
|
||||
' <span id="progress-bar" style="width:0%"></span>' +
|
||||
' </div>' +
|
||||
'</div>';
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="Frameworks/Debug/Objective-J/Objective-J.js" charset="UTF-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
objj_msgSend_reset();
|
||||
|
||||
// DEBUG OPTIONS:
|
||||
// Decorators will only work when the code is compiled without the compiler option 'InlineMsgSend'. Check above.
|
||||
|
||||
// Uncomment to enable printing of backtraces on exceptions:
|
||||
//objj_msgSend_decorate(objj_backtrace_decorator);
|
||||
|
||||
// Uncomment to supress exceptions that take place inside a message
|
||||
//objj_msgSend_decorate(objj_supress_exceptions_decorator)
|
||||
|
||||
// Uncomment to enable runtime type checking:
|
||||
//objj_msgSend_decorate(objj_typecheck_decorator);
|
||||
|
||||
// Uncomment (along with both above) to print backtraces on type check errors:
|
||||
//objj_typecheck_prints_backtrace = true;
|
||||
|
||||
// Uncomment to disable the default logger (CPLogConsole if window.console exists, CPLogPopup otherwise):
|
||||
//CPLogUnregister(CPLogDefault);
|
||||
|
||||
// Uncomment to enable a specific logger:
|
||||
//CPLogRegister(CPLogConsole);
|
||||
//CPLogRegister(CPLogPopup);
|
||||
|
||||
// Tag view DOM elements with a "data-cappuccino-view" attribute that contains
|
||||
// the class name of the view that created them. Comment this or set to false to disable.
|
||||
appkit_tag_dom_elements = true;
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
html, body, h1, p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* We need a body wrapper because Cappuccino is unhappy if we change the body element */
|
||||
#cappuccino-body {
|
||||
/* Position it absolutely so it will fill the height without content */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
|
||||
/* Put it at the bottom of the stack so it doesn't interfere with UI */
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
#cappuccino-body .container {
|
||||
display: table;
|
||||
margin: 0 auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#cappuccino-body .content {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#loading {
|
||||
position: relative;
|
||||
top: 35%;
|
||||
}
|
||||
|
||||
#loading-text {
|
||||
height: 1.5em;
|
||||
color: #555;
|
||||
font: normal bold 36px/36px Arial, sans-serif;
|
||||
}
|
||||
|
||||
#progress-indicator {
|
||||
padding: 0px;
|
||||
height: 16px;
|
||||
border: 5px solid #555;
|
||||
border-radius: 18px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#progress-bar {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
height: 18px;
|
||||
|
||||
/* Compensate for moving the bar left 1px to overlap the indicator border */
|
||||
border-right: 1px solid #555;
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
#noscript {
|
||||
position: relative;
|
||||
top: 35%;
|
||||
padding: 1em 1.5em;
|
||||
border: 5px solid #555;
|
||||
border-radius: 16px;
|
||||
background-color: white;
|
||||
color: #555;
|
||||
text-align: center;
|
||||
font: bold 24px Arial, sans-serif;
|
||||
}
|
||||
|
||||
#noscript a {
|
||||
color: #98c0ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="cappuccino-body">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<script type="text/javascript">
|
||||
document.write(loadingHTML);
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<noscript style="position:absolute; top:0; left:0; width:100%; height:100%">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div id="noscript">
|
||||
<p style="font-size:120%; margin-bottom:.75em">JavaScript is required for this application.</p>
|
||||
<p><a href="http://www.enable-javascript.com" target="_blank">Enable JavaScript</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,167 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<!--
|
||||
index.html
|
||||
__project.name__
|
||||
|
||||
Created by __user.name__ on __project.date__.
|
||||
Copyright __project.year__, __organization.name__ All rights reserved.
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<!--[if lte IE 8]>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, chrome=1">
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<![endif]-->
|
||||
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="apple-touch-icon" href="Resources/icon.png">
|
||||
<link rel="apple-touch-startup-image" href="Resources/default.png">
|
||||
|
||||
<title>__project.name__</title>
|
||||
|
||||
<!-- Custom javascript goes here -->
|
||||
<!-- End custom javascript -->
|
||||
|
||||
<script type="text/javascript">
|
||||
OBJJ_INCLUDE_PATHS = ["../../Frameworks"];
|
||||
OBJJ_MAIN_FILE = "main.j";
|
||||
// The below will tell the compiler to not generate debug symbols but will generate type signatures and inline objj_msgSend functions.
|
||||
// This will affect only Objective-J code that is compiled when loading the application. It will not affect precompiled
|
||||
// code like the Cappuccino frameworks.
|
||||
// Uncomment or comment on the line below to change the flags
|
||||
OBJJ_COMPILER_FLAGS = [/*"IncludeDebugSymbols"*/, "IncludeTypeSignatures"/*, "SourceMap"*/, "InlineMsgSend"];
|
||||
|
||||
var progressBar = null;
|
||||
|
||||
OBJJ_PROGRESS_CALLBACK = function(percent, appSize, path)
|
||||
{
|
||||
percent = percent * 100;
|
||||
|
||||
if (!progressBar)
|
||||
progressBar = document.getElementById("progress-bar");
|
||||
|
||||
if (progressBar)
|
||||
progressBar.style.width = Math.min(percent, 100) + "%";
|
||||
}
|
||||
|
||||
var loadingHTML =
|
||||
'<div id="loading">' +
|
||||
' <div id="loading-text">Loading...</div>' +
|
||||
' <div id="progress-indicator">' +
|
||||
' <span id="progress-bar" style="width:0%"></span>' +
|
||||
' </div>' +
|
||||
'</div>';
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../Frameworks/Objective-J/Objective-J.js" charset="UTF-8"></script>
|
||||
|
||||
<style type="text/css">
|
||||
html, body, h1, p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* We need a body wrapper because Cappuccino is unhappy if we change the body element */
|
||||
#cappuccino-body {
|
||||
/* Position it absolutely so it will fill the height without content */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
|
||||
/* Put it at the bottom of the stack so it doesn't interfere with UI */
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
#cappuccino-body .container {
|
||||
display: table;
|
||||
margin: 0 auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#cappuccino-body .content {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#loading {
|
||||
position: relative;
|
||||
top: 35%;
|
||||
}
|
||||
|
||||
#loading-text {
|
||||
height: 1.5em;
|
||||
color: #555;
|
||||
font: normal bold 36px/36px Arial, sans-serif;
|
||||
}
|
||||
|
||||
#progress-indicator {
|
||||
padding: 0px;
|
||||
height: 16px;
|
||||
border: 5px solid #555;
|
||||
border-radius: 18px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#progress-bar {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
height: 18px;
|
||||
|
||||
/* Compensate for moving the bar left 1px to overlap the indicator border */
|
||||
border-right: 1px solid #555;
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
#noscript {
|
||||
position: relative;
|
||||
top: 35%;
|
||||
padding: 1em 1.5em;
|
||||
border: 5px solid #555;
|
||||
border-radius: 16px;
|
||||
background-color: white;
|
||||
color: #555;
|
||||
text-align: center;
|
||||
font: bold 24px Arial, sans-serif;
|
||||
}
|
||||
|
||||
#noscript a {
|
||||
color: #98c0ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="cappuccino-body">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<script type="text/javascript">
|
||||
document.write(loadingHTML);
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<noscript style="position:absolute; top:0; left:0; width:100%; height:100%">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div id="noscript">
|
||||
<p style="font-size:120%; margin-bottom:.75em">JavaScript is required for this application.</p>
|
||||
<p><a href="http://www.enable-javascript.com" target="_blank">Enable JavaScript</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* AppController.j
|
||||
* tooltips
|
||||
*
|
||||
* Created by You on April 26, 2011.
|
||||
* Copyright 2011, Your Company All rights reserved.
|
||||
*/
|
||||
|
||||
@import <Foundation/Foundation.j>
|
||||
@import <AppKit/AppKit.j>
|
||||
|
||||
@import "AppController.j"
|
||||
|
||||
|
||||
function main(args, namedArgs)
|
||||
{
|
||||
CPApplicationMain(args, namedArgs);
|
||||
}
|
||||
+144
-143
@@ -1,143 +1,144 @@
|
||||
1772558475571|ArrayController1|
|
||||
1772558475587|ArrayControllerInitialSelectionTest|
|
||||
1772558475600|ArrayControllerRemovingFirstTest|
|
||||
1772558475614|AttachedSheet|
|
||||
1772558475628|AttachedSheet2|
|
||||
1772558475641|Bindings|
|
||||
1772558475655|CGCanvasContext|
|
||||
1772558475669|CGPath|
|
||||
1772558475683|CPAlertTest|
|
||||
1772558475696|CPAnimatablePropertyContainerTest|
|
||||
1772558475710|CPAnimationContextTest|
|
||||
1772558475724|CPAnimationTest|
|
||||
1772558475738|CPBinder-echo-bug|
|
||||
1772558475751|CPBoxCibTest|
|
||||
1772558475766|CPBoxTest|
|
||||
1772558475779|CPBrowserTest|
|
||||
1772558475793|CPButtonKeyEquivalentDefaultTest|
|
||||
1772558475807|CPButtonTest|
|
||||
1772558475821|CPByteCountFormatter|
|
||||
1772558475835|CPCollectionViewNibTest|
|
||||
1772558475848|CPColor-CPImage-description|
|
||||
1772558475862|CPColorWellBindings|
|
||||
1772558475876|CPComboBoxTest|
|
||||
1772558475897|CPControlPerformClickExceptionTest|
|
||||
1772558475914|CPControlSize|
|
||||
1772558475932|CPCursor|
|
||||
1772558475947|CPDateFormatterTest|
|
||||
1772558475961|CPDatePickerTest|
|
||||
1772558475974|CPDictionaryControllerTest|
|
||||
1772558475988|CPDocumentControllerTest|
|
||||
1772558476002|CPFormatterTest|
|
||||
1772558476015|CPGraphicsTest|
|
||||
1772558476029|CPImageAndTextViewImageScaling|
|
||||
1772558476043|CPImageViewAlignmentScaling|
|
||||
1772558476056|CPImageViewTest|
|
||||
1772558476070|CPImageViewbindingsTest|
|
||||
1772558476084|CPLevelIndicator|
|
||||
1772558476097|CPLocalizationTest|
|
||||
1772558476111|CPLogTest|
|
||||
1772558476124|CPMenuCALayerTest|
|
||||
1772558476138|CPMenuEnabledBindingsTest|
|
||||
1772558476152|CPMenuKeyEquivalents|
|
||||
1772558476165|CPMenuRemoveAllTest|
|
||||
1772558476179|CPMenuSubmenuPlacementConstraints|
|
||||
1772558476193|CPMenuTest|
|
||||
1772558476206|CPOutlineViewCibTest|
|
||||
1772558476220|CPOutlineViewTest|
|
||||
1772558476234|CPOutlineViewViewBasedCibTest|
|
||||
1772558476247|CPPanelTest|
|
||||
1772558476261|CPPlatformWindow|
|
||||
1772558476275|CPPlattformWindowMinSize|
|
||||
1772558476288|CPPopUpButtonBindings|
|
||||
1772558476302|CPPopUpButtonTest|
|
||||
1772558476316|CPPopover|
|
||||
1772558476330|CPPredicateEditorCibTest|
|
||||
1772558476343|CPProgressIndicator|
|
||||
1772558476357|CPPropertyListSerializationTest|
|
||||
1772558476371|CPRadioBindings|
|
||||
1772558476384|CPRuleEditorCibTest|
|
||||
1772558476398|CPScrollView|
|
||||
1772558476411|CPScrollView2|
|
||||
1772558476425|CPSearchField|
|
||||
1772558476439|CPSearchFieldPredicateBinding|
|
||||
1772558476452|CPSegmentedControlBindings|
|
||||
1772558476466|CPSegmentedControlTest|
|
||||
1772558476479|CPSoundTest|
|
||||
1772558476493|CPSplitViewDivider|
|
||||
1772558476506|CPSplitViewTest|
|
||||
1772558476520|CPStackViewTest|
|
||||
1772558476534|CPStepperBindings|
|
||||
1772558476547|CPStepperNibTest|
|
||||
1772558476561|CPTabView2|
|
||||
1772558476574|CPTabViewBindings|
|
||||
1772558476588|CPTabViewNib|
|
||||
1772558476601|CPTableViewGroupRows|
|
||||
1772558476615|CPTextField|
|
||||
1772558476629|CPTextFieldEditingStyleTest|
|
||||
1772558476642|CPTextFieldHeightTest|
|
||||
1772558476656|CPTextFieldMovementsTest|
|
||||
1772558476670|CPTextFieldMultiline|
|
||||
1772558476683|CPTextView|
|
||||
1772558476697|CPTextViewCibTest|
|
||||
1772558476710|CPTextViewDelegateAndNotifications|
|
||||
1772558476724|CPTimeZone|
|
||||
1772558476738|CPTokenFieldTest|
|
||||
1772558476751|CPToolTip|
|
||||
1772558476765|CPToolbarTest|
|
||||
1772558476779|CPURLConnectionAsyncTest|
|
||||
1772558476792|CPURLConnectionSynchronousTest|
|
||||
1772558476806|CPUserDefaults|
|
||||
1772558476820|CPUserDefaultsControllerTest|
|
||||
1772558476833|CPUserNotificationTest|
|
||||
1772558476847|CPViewController|
|
||||
1772558476860|CPVisualEffectViewTest|
|
||||
1772558476874|CPWebViewTest|
|
||||
1772558476888|CPWebViewTest2|
|
||||
1772558476901|CPWindowLiveResizeTest|
|
||||
1772558476915|CPWindowMovableTest|
|
||||
1772558476928|CPWindowResizeStyle|
|
||||
1772558476942|ChildWindows|
|
||||
1772558476956|CompilationTests|
|
||||
1772558476969|ContinuouslyUpdatesValueBinding|
|
||||
1772558476983|CopyAndPaste|
|
||||
1772558476996|CrossOriginTest|
|
||||
1772558477010|FF4096Test|
|
||||
1772558477024|FontEnhancementTest|
|
||||
1772558477037|FontMetricsExplorer|
|
||||
1772558477051|KeyEquivalents|
|
||||
1772558477064|KeyViewLoopTest|
|
||||
1772558477078|KeyWindowInTheBackgroundActivation|
|
||||
1772558477091|LayoutTest|
|
||||
1772558477105|LoadTimeTest|
|
||||
1772558477119|LongBindings|
|
||||
1772558477132|MobileTest|
|
||||
1772558477146|MultipleValueBindings|
|
||||
1772558477160|NSBoxTest|
|
||||
1772558477173|NSBrowserTest|
|
||||
1772558477187|NewTextFieldBezel|
|
||||
1772558477201|Nib2CibAlignment|
|
||||
1772558477214|Nib2CibBaselineAlignementTest|
|
||||
1772558477228|Nib2CibSubviewsOrderTest|
|
||||
1772558477241|NibAppRemixed|
|
||||
1772558477255|PatternFillTest|
|
||||
1772558477269|PlatformWindows|
|
||||
1772558477282|PopUpButtonEscTest|
|
||||
1772558477296|ScalingTest|
|
||||
1772558477310|ScalingTest2|
|
||||
1772558477323|ScrollviewTheming|
|
||||
1772558477337|SheetWindowOrderFrontIssue|
|
||||
1772558477351|SimpleBindings2|
|
||||
1772558477365|SmartFoldersDemo|
|
||||
1772558477378|TableTest|
|
||||
1772558477392|ThemeBrowser|
|
||||
1772558477406|ThemeKitchenSink|
|
||||
1772558477419|TrackingArea|
|
||||
1772558477433|UndoRedoWithMenuUpdate|
|
||||
1772558477446|UserlandNSTest|
|
||||
1772558477460|layoutEphemeralSubviewTest|
|
||||
1772558477474|loadDynamicFrameworks|
|
||||
1772558477487|performKeyEquivalentTest|
|
||||
1772558477501|predicateWithFormat|
|
||||
1772558477515|resignFirstResponder-CPControlTextDidEndEditing|
|
||||
1772558477528|sizeToFitFix|
|
||||
1772996249321|ArrayController1|
|
||||
1772996249335|ArrayControllerInitialSelectionTest|
|
||||
1772996249348|ArrayControllerRemovingFirstTest|
|
||||
1772996249361|AttachedSheet|
|
||||
1772996249374|AttachedSheet2|
|
||||
1772996249386|Bindings|
|
||||
1772996249399|CGCanvasContext|
|
||||
1772996249412|CGPath|
|
||||
1772996249425|CPAlertTest|
|
||||
1772996249437|CPAnimatablePropertyContainerTest|
|
||||
1772996249450|CPAnimationContextTest|
|
||||
1772996249463|CPAnimationTest|
|
||||
1772996249475|CPBinder-echo-bug|
|
||||
1772996249488|CPBoxCibTest|
|
||||
1772996249500|CPBoxTest|
|
||||
1772996249513|CPBrowserTest|
|
||||
1772996249526|CPButtonKeyEquivalentDefaultTest|
|
||||
1772996249539|CPButtonTest|
|
||||
1772996249551|CPByteCountFormatter|
|
||||
1772996249564|CPCollectionViewNibTest|
|
||||
1772996249577|CPColor-CPImage-description|
|
||||
1772996249589|CPColorWellBindings|
|
||||
1772996249602|CPComboBoxTest|
|
||||
1772996249615|CPControlPerformClickExceptionTest|
|
||||
1772996249627|CPControlSize|
|
||||
1772996249640|CPCursor|
|
||||
1772996249653|CPDateFormatterTest|
|
||||
1772996249666|CPDatePickerTest|
|
||||
1772996249679|CPDictionaryControllerTest|
|
||||
1772996249692|CPDocumentControllerTest|
|
||||
1772996249705|CPFormatterTest|
|
||||
1772996249718|CPGraphicsTest|
|
||||
1772996249731|CPImageAndTextViewImageScaling|
|
||||
1772996249744|CPImageViewAlignmentScaling|
|
||||
1772996249757|CPImageViewTest|
|
||||
1772996249770|CPImageViewbindingsTest|
|
||||
1772996249782|CPLevelIndicator|
|
||||
1772996249795|CPLocalizationTest|
|
||||
1772996249808|CPLogTest|
|
||||
1772996249821|CPMenuCALayerTest|
|
||||
1772996249834|CPMenuEnabledBindingsTest|
|
||||
1772996249847|CPMenuKeyEquivalents|
|
||||
1772996249859|CPMenuRemoveAllTest|
|
||||
1772996249872|CPMenuSubmenuPlacementConstraints|
|
||||
1772996249885|CPMenuTest|
|
||||
1772996249897|CPOutlineViewCibTest|
|
||||
1772996249910|CPOutlineViewTest|
|
||||
1772996249922|CPOutlineViewViewBasedCibTest|
|
||||
1772996249935|CPPanelTest|
|
||||
1772996249948|CPPlatformWindow|
|
||||
1772996249961|CPPlattformWindowMinSize|
|
||||
1772996249974|CPPopUpButtonBindings|
|
||||
1772996249987|CPPopUpButtonTest|
|
||||
1772996250000|CPPopover|
|
||||
1772996250012|CPPredicateEditorCibTest|
|
||||
1772996250025|CPProgressIndicator|
|
||||
1772996250038|CPPropertyListSerializationTest|
|
||||
1772996250051|CPRadioBindings|
|
||||
1772996250063|CPRuleEditorCibTest|
|
||||
1772996250076|CPScrollView|
|
||||
1772996250088|CPScrollView2|
|
||||
1772996250101|CPSearchField|
|
||||
1772996250114|CPSearchFieldPredicateBinding|
|
||||
1772996250127|CPSegmentedControlBindings|
|
||||
1772996250140|CPSegmentedControlTest|
|
||||
1772996250152|CPSoundTest|
|
||||
1772996250165|CPSplitViewDivider|
|
||||
1772996250178|CPSplitViewTest|
|
||||
1772996250191|CPStackViewTest|
|
||||
1772996250204|CPStepperBindings|
|
||||
1772996250217|CPStepperNibTest|
|
||||
1772996250230|CPTabView2|
|
||||
1772996250243|CPTabViewBindings|
|
||||
1772996250255|CPTabViewNib|
|
||||
1772996250268|CPTableViewGroupRows|
|
||||
1772996250281|CPTextField|
|
||||
1772996250293|CPTextFieldEditingStyleTest|
|
||||
1772996250306|CPTextFieldHeightTest|
|
||||
1772996250319|CPTextFieldMovementsTest|
|
||||
1772996250332|CPTextFieldMultiline|
|
||||
1772996250345|CPTextView|
|
||||
1772996250358|CPTextViewCibTest|
|
||||
1772996250371|CPTextViewDelegateAndNotifications|
|
||||
1772996250383|CPTimeZone|
|
||||
1772996250396|CPTokenFieldTest|
|
||||
1772996250409|CPToolTip|
|
||||
1772996250421|CPToolbarTest|
|
||||
1772996250435|CPTreeControllerTest|
|
||||
1772996250447|CPURLConnectionAsyncTest|
|
||||
1772996250460|CPURLConnectionSynchronousTest|
|
||||
1772996250472|CPUserDefaults|
|
||||
1772996250485|CPUserDefaultsControllerTest|
|
||||
1772996250497|CPUserNotificationTest|
|
||||
1772996250510|CPViewController|
|
||||
1772996250523|CPVisualEffectViewTest|
|
||||
1772996250536|CPWebViewTest|
|
||||
1772996250549|CPWebViewTest2|
|
||||
1772996250562|CPWindowLiveResizeTest|
|
||||
1772996250575|CPWindowMovableTest|
|
||||
1772996250588|CPWindowResizeStyle|
|
||||
1772996250601|ChildWindows|
|
||||
1772996250614|CompilationTests|
|
||||
1772996250626|ContinuouslyUpdatesValueBinding|
|
||||
1772996250639|CopyAndPaste|
|
||||
1772996250651|CrossOriginTest|
|
||||
1772996250664|FF4096Test|
|
||||
1772996250677|FontEnhancementTest|
|
||||
1772996250689|FontMetricsExplorer|
|
||||
1772996250702|KeyEquivalents|
|
||||
1772996250715|KeyViewLoopTest|
|
||||
1772996250728|KeyWindowInTheBackgroundActivation|
|
||||
1772996250741|LayoutTest|
|
||||
1772996250754|LoadTimeTest|
|
||||
1772996250766|LongBindings|
|
||||
1772996250779|MobileTest|
|
||||
1772996250792|MultipleValueBindings|
|
||||
1772996250804|NSBoxTest|
|
||||
1772996250818|NSBrowserTest|
|
||||
1772996250831|NewTextFieldBezel|
|
||||
1772996250844|Nib2CibAlignment|
|
||||
1772996250857|Nib2CibBaselineAlignementTest|
|
||||
1772996250870|Nib2CibSubviewsOrderTest|
|
||||
1772996250883|NibAppRemixed|
|
||||
1772996250895|PatternFillTest|
|
||||
1772996250908|PlatformWindows|
|
||||
1772996250920|PopUpButtonEscTest|
|
||||
1772996250933|ScalingTest|
|
||||
1772996250945|ScalingTest2|
|
||||
1772996250958|ScrollviewTheming|
|
||||
1772996250970|SheetWindowOrderFrontIssue|
|
||||
1772996250983|SimpleBindings2|
|
||||
1772996250995|SmartFoldersDemo|
|
||||
1772996251008|TableTest|
|
||||
1772996251020|ThemeBrowser|
|
||||
1772996251034|ThemeKitchenSink|
|
||||
1772996251047|TrackingArea|
|
||||
1772996251060|UndoRedoWithMenuUpdate|
|
||||
1772996251073|UserlandNSTest|
|
||||
1772996251085|layoutEphemeralSubviewTest|
|
||||
1772996251098|loadDynamicFrameworks|
|
||||
1772996251110|performKeyEquivalentTest|
|
||||
1772996251124|predicateWithFormat|
|
||||
1772996251136|resignFirstResponder-CPControlTextDidEndEditing|
|
||||
1772996251149|sizeToFitFix|
|
||||
|
||||
Reference in New Issue
Block a user