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
// | |
// main.j | |
import <Foundation/Foundation.j> | |
import <AppKit/AppKit.j> | |
@implementation CPDictionary (CPKeyValueCoding) | |
- (id)valueForKey:(CPString)key |
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 string = @"/a/b"; | |
var selector = @selector(lastPathComponent); | |
var invocation = [CPInvocation invocationWithMethodSignature:nil]; | |
[invocation setTarget:string]; | |
[invocation setSelector:selector]; | |
var result = [invocation invoke]; | |
CPLogConsole("RESULT = "+ result); |
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 string = @"/a/b"; | |
var selector = @selector(lastPathComponent); | |
var invocation = [CPInvocation invocationWithMethodSignature:nil]; | |
[invocation setTarget:string]; | |
[invocation setSelector:selector]; | |
var result = [invocation invoke]; | |
CPLogConsole("RESULT = "+ result); |
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
Statically Preprocessing AppKit.j | |
Compacting /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/AppKit | |
cp -r /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/AppKit/. /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/env/lib/Frameworks/AppKit | |
js: "/Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/env/narwhal/packages/objj/lib/objj/objj.js#20(eval)#2422(eval)", line 86: uncaught JavaScript runtime exception: ReferenceError: "CPPopUpButton" n'est pas dfini | |
at /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/env/narwhal/packages/objj/lib/objj/objj.js#20(eval)#2422(eval):86 ($AristoThemeDescriptor__themedPopUpButton) | |
at /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/env/narwhal/packages/objj/lib/objj/objj.js#20(eval)#2422(eval):80 | |
at /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/env/narwhal/packages/objj/lib/objj/objj.js#20(eval)#2422(eval):68 | |
at /Volumes/GAMMA/DEVELOPPEMENT/BUILDS/CAPPUCCINO/Release/env/narwhal/packages/objj/lib/objj/obj |
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
Statically Preprocessing CPMenuItem.j | |
Statically Preprocessing CPOpenPanel.j | |
Statically Preprocessing CPOutlineView.j | |
Statically Preprocessing CPPanel.j | |
Statically Preprocessing CPPasteboard.j | |
Statically Preprocessing CPPopUpButton.j | |
Exception in thread "main" java.lang.RuntimeException | |
at org.dojotoolkit.shrinksafe.Compressor.compress(Compressor.java:551) | |
at org.dojotoolkit.shrinksafe.Compressor.compressScript(Compressor.java:727) | |
at org.dojotoolkit.shrinksafe.Main.processFiles(Main.java:191) |
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 AppController : CPObject | |
{ | |
var theWindow; | |
var menu; | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
{ | |
theWindow = [[MyWindow alloc] initWithContentRect:CGRectMake(50,50,500,500) styleMask:CPResizableWindowMask], | |
contentView = [theWindow contentView]; |
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 CPArray (MoveIndexes) | |
- (void)moveIndexes:(CPIndexSet)indexes toIndex:(int)insertIndex | |
{ | |
var aboveCount = 0, | |
object, | |
removeIndex; | |
var index = [indexes lastIndex]; | |
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 "CPObject.j" | |
@import "CPString.j" | |
@import "CPDate.j" | |
@import "CPDictionary.j" | |
@import "CPBundle.j" | |
@import "CPException.j" | |
@import "CPKeyedArchiver.j" | |
@import "CPKeyedUnarchiver.j" | |
@import <AppKit/CPCookie.j> |
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
- (void)drawRect:(CGRect)rect | |
{ | |
var ctx = [[CPGraphicsContext currentContext] graphicsPort]; | |
CGContextSetFillColor(ctx, [CPColor redColor]); | |
var path = CGPathCreateMutable(); | |
CGPathMoveToPoint(path, NULL, 50,50); | |
CGPathAddLineToPoint(path, NULL, 50,150); | |
CGPathAddLineToPoint(path, NULL, 150,150); |
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
- (void)drawRect:(CGRect)rect | |
{ | |
var ctx = [[CPGraphicsContext currentContext] graphicsPort]; | |
CGContextSetFillColor(ctx, [CPColor redColor]); | |
var path = CGPathCreateMutable(); | |
CGPathAddRect(path,NULL,CGRectMake(10,10,50,50)); | |
CGContextAddPath(ctx, path); | |
CGContextFillPath(ctx); | |
OlderNewer