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 | |
* Social Radar | |
* | |
* Created by You on April 25, 2010. | |
* Copyright 2010, Your Company All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import <AppKit/CPTabView.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
@import <AppKit/CPToolbar.j> | |
@implementation SRRibbon : CPToolbar | |
{ | |
} | |
- (id)initWithIdentifier:(CPString)anIdentifier | |
{ | |
if (self = [super initWithIdentifier:anIdentifier]) |
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
- (void)drawRect:(CPRect)aRect | |
{ | |
if(needsLayout) | |
{ | |
[self layoutSubviews]; | |
needsLayout = NO; | |
} | |
[super drawRect:aRect]; | |
var start = [[CPDate alloc] init]; |
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
/* | |
* CPTooltip.j | |
* Makes a little black rounded-rect gradient tooltip with some text (can have multiple lines with \n) which points at something. | |
* Usage example: | |
* tooltip = [[CPTooltip alloc] initWithText:@"Hello There" atPoint:CPPointMake(100,100)]; | |
* [self addSubview:tooltip]; | |
* | |
* The above will make a tooltip that says "Hello There" which is pointing at this view's 100x100 point. | |
* If the tooltip is too close to its superview's edges, it will adjust itself to maintain readability. | |
* |