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
AppBadgeViewDragType = "AppBadgeViewDragType"; | |
function hypot(x,y) { | |
var hyp = Math.sqrt(x*x + y*y); | |
return hyp; | |
} | |
@implementation AppBadgeItemView : CPView | |
{ |
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> | |
@implementation STSplitView : CPSplitView | |
{ | |
} | |
- (id)initWithFrame:(CGRect)frame { | |
self = [super initWithFrame:frame]; | |
if (self) { |
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
/*! | |
@class STWindow.j | |
@abstract Custom CPWindow class for apps | |
@detail STWindow is the default window class for apps in StockTwits Desktop. This window class is made to be subclassed. | |
To enable the menu items, window controllers of the subclass must implement -newWindow: and -showPreferences: | |
*/ | |
@import <AppKit/AppKit.j> | |
@import <Foundation/Foundation.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
var thisDict; | |
thisDict = [CPDictionary dictionaryWithObjectsAndKeys: appLauncherView, | |
CPViewAnimationTargetKey, | |
(open) ? CPViewAnimationFadeOutEffect : CPViewAnimationFadeInEffect, | |
CPViewAnimationEffectKey]; | |
[anims addObject:thisDict]; //BOOL open determines which effect will occur | |
animation = [[CPViewAnimation alloc] initWithViewAnimations:anims]; | |
//[animation setAnimationBlockingMode:CPAnimationBlocking]; |
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 ManageWatchListsController : CPObject | |
{ | |
@outlet CPTableView watchListTableView; | |
@outlet CPButtonBar buttonBar; | |
CPArray watchLists; | |
var selectedWatchList; | |
} | |
-(void)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
var map; | |
var geocoder; | |
function addAddressToMap(response) | |
{ | |
map.clearOverlays(); | |
if (!response || response.Status.code != 200) | |
{ | |
alert("Sorry, we were unable to geocode that address"); | |
} |
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 map; | |
var geocoder; | |
function addAddressToMap(response) | |
{ | |
map.clearOverlays(); | |
if (!response || response.Status.code != 200) | |
{ | |
alert("Sorry, we were unable to geocode that address"); | |
} |
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)allocWithZone:(NSZone *)zone { | |
return [[self sharedManager] retain]; | |
} | |
- (id)copyWithZone:(NSZone *)zone { | |
return self; | |
} | |
- (id)retain { | |
return self; | |
} | |
- (unsigned)retainCount { |
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
@interface UIColor (Hex) | |
+ (UIColor *)colorWithHex:(NSString *)hex alpha:(CGFloat)alpha; | |
- (UIColor *)initWithHex:(NSString *)hex alpha:(CGFloat)alpha; | |
@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
2012-02-28 15:09:52.944 Untitled[27437:707] { | |
"#business_information" = { | |
"-moz-text-shadow" = "1px 1px 1px #333333"; | |
"-ms-text-shadow" = "1px 1px 1px #333333"; | |
"-o-text-shadow" = "1px 1px 1px #333333"; | |
"-webkit-text-shadow" = "1px 1px 1px #333333"; | |
"background-color" = red; | |
"background-image" = "none !important"; | |
"border-top" = "1px solid #fe8184"; | |
color = "#fff !important"; |