Skip to content

Instantly share code, notes, and snippets.

diff --git a/AppKit/_CPImageAndTextView.j b/AppKit/_CPImageAndTextView.j
index 5b7194f..695598a 100644
--- a/AppKit/_CPImageAndTextView.j
+++ b/AppKit/_CPImageAndTextView.j
@@ -574,8 +574,8 @@ var HORIZONTAL_MARGIN = 3.0,
_DOMImageElement.width = imageWidth;
_DOMImageElement.height = imageHeight;
- imageStyle.width = imageWidth + "px";
- imageStyle.height = imageHeight + "px";
/*
* AppController.j
* CPBrowserTest
*
* Created by Ross Boucher on March 23, 2010.
* Copyright 2010, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "CPBrowser.j"
boucher ~/Projects/Cappuccino (master) $ nib2cib -h
Usage: main.j [OPTIONS] INPUT_FILE [OUTPUT_FILE]
-F FRAMEWORK: Add a framework to load
-R RESOURCES: Set the Resources directory
--mac: Set format to Mac
-v --verbose: Increase verbosity level
-q --quiet: No output
-h --help: displays usage information (final option)
<IFRAME style="Z-INDEX: 2147483647; POSITION: absolute; BORDER-RIGHT-WIDTH: 0px; WIDTH: 1px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; HEIGHT: 1px; OVERFLOW: hidden; BORDER-LEFT-WIDTH: 0px; TOP: -100px; LEFT: -100px" class=cpdontremove></IFRAME>
@implementation AvailableSceneView : CPImageView
{
}
- (void)setRepresentedObject:(id)anObject
{
[self setImage:anObject];
}
@end
diff --git a/AppKit/Platform/DOM/CPPlatformString.j b/AppKit/Platform/DOM/CPPlatformString.j
index 7b82f44..96c1dcc 100644
--- a/AppKit/Platform/DOM/CPPlatformString.j
+++ b/AppKit/Platform/DOM/CPPlatformString.j
@@ -67,11 +67,15 @@ var DOMSpanElement = nil,
DOMSpanElement = DOMIFrameDocument.createElement("span");
DOMSpanElement.style.position = "absolute";
- DOMSpanElement.style.whiteSpace = "pre";
DOMSpanElement.style.visibility = "visible";
diff --git a/AppKit/Platform/DOM/CPPlatformString.j b/AppKit/Platform/DOM/CPPlatformString.j
index 7b82f44..c12f2ab 100644
--- a/AppKit/Platform/DOM/CPPlatformString.j
+++ b/AppKit/Platform/DOM/CPPlatformString.j
@@ -67,7 +67,7 @@ var DOMSpanElement = nil,
DOMSpanElement = DOMIFrameDocument.createElement("span");
DOMSpanElement.style.position = "absolute";
- DOMSpanElement.style.whiteSpace = "pre";
+ //DOMSpanElement.style.whiteSpace = "pre";
function drawDashedLine(context, startPoint, endPoint)
{
var axis = startPoint.x === endPoint.x ? 'y' : 'x',
distance = endPoint[axis] - startPoint[axis],
dashes = CEIL(distance / 4),
index = 0,
point = CGPointMakeCopy(startPoint),
segments = [];
for (; index < dashes; ++index)
var animation = [[CPViewAnimation alloc] initWithViewAnimations:[
[CPDictionary dictionaryWithJSObject:{
CPViewAnimationTarget:view,
CPViewAnimationEndFrame:CGRectOffset([view frame], 10, 10)
}]
]];
[animation setDuration:100];
[animation startAnimation];
/*
* NSTableHeaderView.j
* nib2cib
*
* Created by Ross Boucher.
* Copyright 2010, 280 North, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either