This file contains 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 priority = function(p) | |
{ | |
return kiwi.Strength.create(0, 1, 0, p); | |
}; | |
var kiwi = require("kiwi.js") | |
var solver = new kiwi.Solver(); | |
var width = new kiwi.Variable("width"); | |
var widthExp = new kiwi.Expression(width); | |
var antiCompression = new kiwi.Constraint(widthExp, kiwi.Operator.Ge, 100, priority(510)); |
This file contains 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
macminiduo:cappuccino romain$ jake | |
(in /Volumes/GAMMA/DEVELOPPEMENT/cacaodev/cappuccino) | |
(in /Volumes/GAMMA/DEVELOPPEMENT/cacaodev/cappuccino) | |
setupEnvironment warning: SyntaxError: Unexpected token ) | |
(in /Volumes/GAMMA/DEVELOPPEMENT/cacaodev/cappuccino/Objective-J) | |
setupEnvironment warning: SyntaxError: Unexpected token ) | |
Building... /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/Objective-J/Objective-J.js | |
Throw caught by top level try in narwhal-node/bootstrap.js | |
Error: BufCache.next(n) only takes positive numbers. n is 0 | |
/Volumes/GAMMA/DEVELOPPEMENT/cacaodev/narwhal/node_modules/synchronize/sync.js:114 |
This file contains 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 NSTreeController | |
- (id)initWithCoder:(id) | |
//id __cdecl -[NSTreeController initWithCoder:](struct NSTreeController *self, SEL a2, id a3) | |
{ | |
void *v3; // esi@1 | |
void *v4; // eax@2 | |
void *v5; // eax@2 | |
void *v6; // eax@2 | |
void *v7; // eax@2 |
This file contains 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
- (id)initWithTarget:(id)aTarget | |
{ | |
self = [super initWithTarget:aTarget]; | |
_wantsPeriodicFrameUpdates = NO; | |
return self; | |
} | |
- (void)requestPeriodicFrameUpdates |
This file contains 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 CSSStringFromCGAffineTransform = function(anAffineTransform) | |
{ | |
// Firefox : add px to the translate values. | |
return "matrix(" + anAffineTransform.a + ", " + anAffineTransform.b + ", " + anAffineTransform.c + ", " + anAffineTransform.d + ", " + anAffineTransform.tx + ", " + anAffineTransform.ty + ")"; | |
}; | |
var frameOriginToCSSTransformMatrix = function(start, current) | |
{ | |
var affine = CGAffineTransformMakeTranslation(current.x - start.x, current.y - start.y); |
This file contains 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
@import <AppKit/AppKit.j> | |
@import <Foundation/Foundation.j> | |
[CPApplication sharedApplication]; | |
@implementation CPAutosizeTest : OJTestCase | |
{ | |
CPInteger NUMBER_OF_VIEWS; | |
CPInteger RESIZES_COUNT; |
This file contains 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
Sets the item prototype to \c anItem. | |
If the item prototype view is located in an external cib file, then the representedObject, outlets and bindings will be automatically restored when an item is created. | |
If the prototype item view belong to the same cib as the collection view, then the item prototype should implement the CPCoding protocol | |
because the item is copied by archiving and unarchiving the | |
prototypal view. | |
Bindings won't be restored throught archiving, instead you need to subclass the -representedObject: method and update the view there. |
This file contains 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
NSColorPanelColorWell | |
NSDisplayFontBinder:NSBinder: font,fontSize,fontName,fontFamilyName,fontItalic,fontBold | |
NSEditableBinder:NSBinder: enabled,hidden | |
NSObjectParameterBinder:NSBinder: toolTip | |
NSValueBinder:NSEditorBinder:NSBinder: value | |
NSStepper |
This file contains 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
- (id)valueForKey:(CPString)aKey | |
{ | |
var capitalizedKey = aKey.charAt(0).toUpperCase() + aKey.substring(1), | |
objectAtIndexSEL = sel_getName(@"objectIn" + capitalizedKey + "AtIndex:"), | |
objectsAtIndexesSEL = sel_getName(aKey + "AtIndexes:"), | |
countSEL = sel_getName(@"countOf" + capitalizedKey); | |
if ([destination respondsToSelector:countSEL] && ([destination respondsToSelector:objectAtIndexSEL] || [destination respondsToSelector:objectsAtIndexesSEL])) | |
return [destination mutableArrayValueForKey:aKey]; | |
This file contains 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 | |
* TestTemplate | |
* | |
* Created by You on August 10, 2010. | |
* Copyright 2010, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> |
NewerOlder