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
// | |
// UIDevice+DTFeatureCheck.h | |
// DTUIKit | |
// | |
// Created by Daniel Tull on 02.08.2010. | |
// Copyright 2010 Daniel Tull. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
@implementation DCTCDGroup (DCTManagedObjectAutomatedSetup) | |
+ (NSDictionary *)dct_mappingFromRemoteNamesToLocalNames { | |
NSMutableDictionary *d = [[NSMutableDictionary alloc] init]; | |
[d setObject:@"groupID" forKey:@"id"]; | |
[d setObject:@"groupDescription" forKey:@"description"]; | |
return [d autorelease]; | |
} | |
+ (id)dct_convertValue:(id)value toCorrectTypeForKey:(NSString *)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
@implementation DCTCDItem (DCTManagedObjectAutomatedSetup) | |
+ (NSString *)dct_uniqueKey { | |
return @"theID"; | |
} | |
+ (NSDictionary *)dct_mappingFromRemoteNamesToLocalNames { | |
NSMutableDictionary *d = [[NSMutableDictionary alloc] init]; | |
[d setObject:@"theID" forKey:@"remoteID"]; | |
return [d autorelease]; |
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
@interface UIView (DCTResizing) | |
- (void)setWidth:(CGFloat)newWidth; | |
- (void)setHeight:(CGFloat)newHeight; | |
@end |
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
[managedObjectContext dct_asynchronousFetchRequest:fetchRequest | |
withCallbackBlock:^(NSArray *fetchedObjects, NSError *error) { | |
// Do something with the fetched objects in this callback block. | |
NSLog(@"fetchedObjects: %@", fetchedObjects); | |
NSLog(@"error: %@", error); | |
}]; |
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
[managedObjectContext dct_asynchronousObjectsForEntityName:@"DCTCDGroup" | |
predicate:predicate | |
sortDescriptors:sortDescriptors | |
callbackBlock:^(NSArray *fetchedObjects, NSError *error) { | |
NSLog(@"sorted fetchedObjects: %@", fetchedObjects); | |
NSLog(@"error: %@", error); | |
}]; |
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
#!/bin/bash | |
usage() { | |
echo "usage: git dctsubmodule remove [--hard] submodulepath" | |
} | |
if [[ ! -f .gitmodules ]]; then | |
echo "git submodules not in use" | |
exit | |
fi |
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
#!/bin/bash | |
codebranch="develop" | |
docbranch="gh-pages" | |
projectname=$(pwd | sed "s/^.*\///g") | |
docdirectory="Documentation" | |
defaultcommitmessage="Update documentation." | |
# Switches to the codebranch | |
# Generates the documentation to /tmp/gitappledoc/ | |
# Switches to the docbranch |
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
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names | |
# *) local and remote tag names |
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
Testy Test test. |
OlderNewer