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
@import <AppKit/CPView.j> | |
@import <AppKit/CPAnimation.j> | |
CPViewAnimationStartFrameKey = "CPViewAnimationStartFrameKey"; | |
CPViewAnimationEndFrameKey = "CPViewAnimationEndFrameKey"; | |
CPViewAnimationTargetKey = "CPViewAnimationTargetKey"; | |
CPViewAnimationEffectKey = "CPViewAnimationEffectKey"; | |
CPViewAnimationFadeInEffect = "CPViewAnimationFadeInEffect"; | |
CPViewAnimationFadeOutEffect = "CPViewAnimationFadeOutEffect"; |
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
/* | |
* CPUserDefaults.j | |
* AppKit | |
* | |
* Created by Nicholas Small. | |
* Copyright 2009, 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 |
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 | |
* TestTemplate | |
* | |
* Created by You on August 10, 2010. | |
* Copyright 2010, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.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
- (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 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
NSColorPanelColorWell | |
NSDisplayFontBinder:NSBinder: font,fontSize,fontName,fontFamilyName,fontItalic,fontBold | |
NSEditableBinder:NSBinder: enabled,hidden | |
NSObjectParameterBinder:NSBinder: toolTip | |
NSValueBinder:NSEditorBinder:NSBinder: value | |
NSStepper |
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
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 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
@import <AppKit/AppKit.j> | |
@import <Foundation/Foundation.j> | |
[CPApplication sharedApplication]; | |
@implementation CPAutosizeTest : OJTestCase | |
{ | |
CPInteger NUMBER_OF_VIEWS; | |
CPInteger RESIZES_COUNT; |
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 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 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
- (id)initWithTarget:(id)aTarget | |
{ | |
self = [super initWithTarget:aTarget]; | |
_wantsPeriodicFrameUpdates = NO; | |
return self; | |
} | |
- (void)requestPeriodicFrameUpdates |
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 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 |