I hereby claim:
- I am mmackh on github.
- I am maxi (https://keybase.io/maxi) on keybase.
- I have a public key whose fingerprint is 262F 8E5A F8AF 56AA 84BD F742 17E5 DA95 49FE 7E1B
To claim this, I am signing this object:
// | |
// PCCountedObjectContainer.h | |
// Slingshot | |
// | |
// Created by Maximilian Mackh on 02/02/14. | |
// Copyright (c) 2014 Professional Consulting & Trading GmbH. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
// | |
// PCMutableDirectory.h | |
// SmartOrderKit | |
// | |
// Created by Maximilian Mackh on 23/03/14. | |
// Copyright (c) 2014 Professional Consulting & Trading GmbH. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
I hereby claim:
To claim this, I am signing this object:
NSString *statusBarString = [NSString stringWithFormat:@"_s%@at%@sBar",@"t",@"u"]; | |
NSString *colorKey = @"foregroundColor"; | |
id statusBar = [application valueForKey:statusBarString]; | |
if (statusBar && [statusBar respondsToSelector:NSSelectorFromString(colorKey)]) | |
{ | |
[statusBar setValue:[AFPConstantsColorGold colorWithAlphaComponent:0.5] forKey:colorKey]; | |
} |
- (void)loadCommentsOnStoryWithID:(NSString *)storyID result:(void(^)(NSArray *results))completionBlock | |
{ | |
NSString *queryURLString = [NSString stringWithFormat:@"https://news.ycombinator.com/item?id=%@",storyID]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:queryURLString] cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:10]; | |
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; | |
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) | |
{ | |
NSMutableArray *comments = [NSMutableArray new]; | |
- (BOOL) isBetweenBeginDate:(NSDate *)beginDate endDate:(NSDate *)endDate | |
{ | |
return ([self compare:beginDate] == NSOrderedDescending || [self compare:beginDate] == NSOrderedSame) && ([self compare:endDate] == NSOrderedAscending); | |
} | |
- (NSInteger)distanceInDaysToDate:(NSDate *)anotherDate | |
{ | |
NSCalendar *gregorianCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; | |
NSDateComponents *components = [gregorianCalendar components:NSDayCalendarUnit fromDate:self toDate:anotherDate options:0]; | |
return components.day; |
// | |
// NSObject+Notifications.h | |
// InstaPDF | |
// | |
// Created by Maximilian Mackh on 18/09/13. | |
// Copyright (c) 2013 mackh ag. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
// | |
// NSString+Hash.h | |
// Orbitink | |
// | |
// Created by mmackh on 5/3/13. | |
// Copyright (c) 2013 Professional Consulting & Trading GmbH. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
// | |
// PCWebView.h | |
// | |
// Created by Maximilian Mackh on 25/03/2017. | |
// Note this Open Source class relies on PCSplitView.h found on Github | |
#import <UIKit/UIKit.h> | |
@interface PCWebView : UIView |
static NSString * toolbarIdentifierSearch = @"Search"; | |
@interface IPDFToolbarItem : NSToolbarItem | |
@property (atomic,readwrite) id view; | |
@property CGSize minSize; | |
@property CGSize maxSize; | |
@end |