This file contains 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 os | |
# go through the whole folder, and add all directories, that contain sourcecode | |
# Which directories to scan | |
directories = ("MyFantasticProject", "External", "libs") | |
def find_all_source_directories(parentDir): | |
def directories_contains_source(files): | |
for f in files: |
This file contains 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 <Cocoa/Cocoa.h> | |
@interface NSDictionary (objectForKeyList) | |
- (id)objectForKeyList:(id)key, ...; | |
@end | |
@implementation NSDictionary (objectForKeyList) | |
- (id)objectForKeyList:(id)key, ... | |
{ |
This file contains 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
// Created by Benedikt Terhechte on 07.12.11. | |
// Appventure.me | |
// | |
#import <Foundation/Foundation.h> | |
#define AKeyPathDictionary(dictionary, A) [dictionary objectForKey:@A] | |
#define BKeyPathDictionary(dictionary, A, B) [AKeyPathDictionary(dictionary, A) objectForKey:@B] | |
#define CKeyPathDictionary(dictionary, A, B, C) [BKeyPathDictionary(dictionary, A, B) objectForKey:@C] | |
#define DKeyPathDictionary(dictionary, A, B, C, D) [CKeyPathDictionary(dictionary, A, B, C) objectForKey:@D] |
This file contains 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
// | |
// slow_kvo_dictionary_example.m | |
// | |
// Created by Benedikt Terhechte on 07.12.11. | |
// appventure.me | |
// | |
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) |
NewerOlder