WWDC 2007 2008 2009 2010 2011 2012 2013 2014 2015
This file contains hidden or 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
#include <mach/port.h> /* mach_port_t */ | |
#include <mach/mach.h> /* mach_port_allocate(), mach_task_self(), mach_port_insert_member() */ | |
#include <sys/event.h> /* kqueue(), kevent64(), struct kevent64_s, EVFILT_MACHPORT, EV_SET64, EV_ADD */ | |
#include <sys/time.h> /* struct timespec */ | |
//#include <dispatch/private.h> | |
extern mach_port_t _dispatch_get_main_queue_port_4CF(void); | |
extern void _dispatch_main_queue_callback_4CF(void); | |
#include <stdio.h> |
This file contains hidden or 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
// Crashlytics have defined these so that if we use a new SDK then build then we get errors. We'll define these macros to remove any typed collections. | |
#ifdef CLS_GENERIC_NSARRAY | |
#undef CLS_GENERIC_NSARRAY | |
#define CLS_GENERIC_NSARRAY(type) NSArray | |
#endif | |
#ifdef CLS_GENERIC_NSDICTIONARY | |
#undef CLS_GENERIC_NSDICTIONARY | |
#define CLS_GENERIC_NSDICTIONARY(key_type,object_key) NSDictionary |
This file contains hidden or 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
NSInteger osxVersion; | |
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_6) { | |
//10.6.x or earlier systems | |
osxVersion = 106; | |
NSLog(@"Mac OSX Snow Leopard"); | |
} else if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_7) { | |
/* On a 10.7.x or earlier system */ | |
osxVersion = 107; | |
NSLog(@"Mac OSX Lion"); | |
} else if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_8) { |
This file contains hidden or 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 | |
SCRIPT_PATH="${0}" | |
SCRIPT_DIR=`dirname "${SCRIPT_PATH}"` | |
SCRIPT_DIR=`cd "${SCRIPT_DIR}"; pwd` | |
echo "$SCRIPT_DIR" |
This file contains hidden or 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 -x | |
############################################################################################################################ | |
### | |
### MOGenerator.command | |
### | |
### Managed Object Generator Build Script. | |
### Implements generation gap codegen pattern for Core Data. | |
### http://rentzsch.github.com/mogenerator/ | |
### |
This file contains hidden or 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 -x | |
# This script automatically sets the version and short version string of | |
# an Xcode project from the Git repository containing the project. | |
# | |
# To use this script in Xcode 4, add the contents to a "Run Script" build | |
# phase for your application target. | |
set -o errexit | |
set -o nounset |
This file contains hidden or 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
# OS X Finder | |
.DS_Store | |
# Xcode per-user config | |
*.mode1 | |
*.mode1v3 | |
*.mode2v3 | |
*.perspective | |
*.perspectivev3 | |
*.pbxuser |
NewerOlder