This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation AvailableSceneView : CPImageView | |
{ | |
} | |
- (void)setRepresentedObject:(id)anObject | |
{ | |
[self setImage:anObject]; | |
} | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var animation = [[CPViewAnimation alloc] initWithViewAnimations:[ | |
[CPDictionary dictionaryWithJSObject:{ | |
CPViewAnimationTarget:view, | |
CPViewAnimationEndFrame:CGRectOffset([view frame], 10, 10) | |
}] | |
]]; | |
[animation setDuration:100]; | |
[animation startAnimation]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |