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
// | |
// KVStylesheet.m | |
// Koolistov | |
// | |
// Created by Johan Kool on 15-04-2011. | |
// Copyright 2011 Koolistov. Use as you desire. | |
// | |
#import "KVStylesheet.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
// | |
// NSURL+PathParameters.h | |
// | |
// Created by Johan Kool on 27/9/2011. | |
// Copyright 2011 Koolistov Pte. Ltd. All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without modification, are | |
// permitted provided that the following conditions are met: | |
// | |
// * Redistributions of source code must retain the above copyright notice, this list of |
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
// | |
// NSData+Hex.h | |
// | |
// Based on code by AliSoftware | |
// http://stackoverflow.com/a/7520723/60488 | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSData (Hex) |
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
#define NILIFNULL(foo) ((foo == [NSNull null]) ? nil : foo) | |
#define NULLIFNIL(foo) ((foo == nil) ? [NSNull null] : foo) | |
#define EMPTYIFNIL(foo) ((foo == nil) ? @"" : foo) |
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
# | |
# Set the build number to the current git commit count. | |
# If we're using the Dev scheme, then we'll suffix the build | |
# number with the current branch name, to make collisions | |
# far less likely across feature branches. | |
# Based on: http://w3facility.info/question/how-do-i-force-xcode-to-rebuild-the-info-plist-file-in-my-project-every-time-i-build-the-project/ | |
# | |
git=`sh /etc/profile; which git` | |
appBuild=`"$git" rev-list --all |wc -l` | |
if [ $CONFIGURATION = "Debug" ]; then |