I hereby claim:
- I am jaykz52 on github.
- I am jak_ (https://keybase.io/jak_) on keybase.
- I have a public key ASDIGx3VXJv5CUMQ-hi3I4VnyBuP5qIPkATWikcrO9Faqwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
- (BOOL)_dateIsDisabled:(NSDate *)date | |
{ | |
// disable all dates before current date | |
return [date compare:[NSDate date]] == NSOrderedAscending; | |
} | |
- (BOOL)calendar:(CKCalendarView *)calendar willSelectDate:(NSDate *)date | |
{ | |
return ![self _dateIsDisabled:date]; | |
} |
#pragma mark - CKSideBarControllerDelegate | |
// Remember sideBarController.delegate = self !!! | |
- (BOOL)sideBarController:(CKSideBarController *)sideBarController shouldSelectViewController:(UIViewController *)viewController { | |
return NO; // can't touch this | |
} | |
- (void)sideBarController:(CKSideBarController *)sideBarController didSelectViewController:(UIViewController *)viewController { | |
NSLog(@"viewController %@ selected!", viewController); |
#import "CKSideBarController.m" | |
// ... | |
@implementation FirstViewController | |
- (id)init { | |
self = [super init]; | |
if (self) { | |
self.sideBarItem.title = @"First"; |
- (void)applicationDidBecomeActive:(UIApplication *)application | |
{ | |
self.barController.viewControllers = @[ | |
[[FirstViewController alloc] init], | |
[[SecondViewController alloc] init], | |
[[ThirdViewController alloc] init] | |
]; | |
} |
#import "CKSideBarController.h" | |
// ... | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
// Override point for customization after application launch. | |
self.barController = [[CKSideBarController alloc] init]; |
var elements = UIATarget.localTarget().frontMostApp().mainWindow().elements(); | |
for (var i = 0; i < elements.length; i++) { | |
var el1 = elements[i]; | |
var el2 = elements[i]; | |
var equals = (el1 == el2); | |
UIALogger.logMessage(el1.label() + " is equal to " + el2.label() + " ? " + equals); | |
} |
// webkitdragdrop.js v1.0, Mon May 15 2010 | |
// | |
// Copyright (c) 2010 Tommaso Buvoli (http://www.tommasobuvoli.com) | |
// No Extra Libraries are required, simply download this file, add it to your pages! | |
// | |
// To See this library in action, grab an ipad and head over to http://www.gotproject.com | |
// webkitdragdrop is freely distributable under the terms of an MIT-style license. | |
//Description |
#import "mechanic.js" |
var Car, Motorcyle, Vehicle; | |
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { | |
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } | |
function ctor() { this.constructor = child; } | |
ctor.prototype = parent.prototype; | |
child.prototype = new ctor; | |
child.__super__ = parent.prototype; | |
return child; | |
}; | |
Vehicle = (function() { |