This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| nline void pspdf_dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_block_t block) { | |
| dispatch_get_current_queue() == queue ? block() : dispatch_sync(queue, block); | |
| } |
| // Property Nonatomic Strong | |
| // Platform: All | |
| // Completion Scopes: ClassInterfaceMethods | |
| @property (nonatomic, strong) <# class_name #> *<# variable_name #>; |
| NSString * eventForCategoryAction(NSString *category, NSString *action) { | |
| return [NSString stringWithFormat:@"%@:%@", (category) ? category : @"default", action] | |
| } | |
| void __attribute__((overloadable)) TrackEvent(NSString *category, NSString *action, NSDictionary *infoDict) { | |
| [Flurry trackEvent:eventForCategory(category, action) withParameters:infoDict]; | |
| } | |
| void __attribute__((overloadable)) TrackEvent(NSString *category, NSString *action) { | |
| TrackEvent(category, action, nil); |
| #import <UIKit/UIKit.h> | |
| #import <ImageIO/ImageIO.h> | |
| #import <MobileCoreServices/MobileCoreServices.h> | |
| static UIImage *frameImage(CGSize size, CGFloat radians) { | |
| UIGraphicsBeginImageContextWithOptions(size, YES, 1); { | |
| [[UIColor whiteColor] setFill]; | |
| UIRectFill(CGRectInfinite); | |
| CGContextRef gc = UIGraphicsGetCurrentContext(); | |
| CGContextTranslateCTM(gc, size.width / 2, size.height / 2); |
| #import <Foundation/Foundation.h> | |
| @interface NSObject (Subclasses) | |
| + (NSSet *) subclasses_xcd; | |
| @end |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
| #import <Foundation/Foundation.h> | |
| #import <mach/mach_time.h> // for mach_absolute_time() and friends | |
| // clang -g -fobjc-arc -Weverything -Wno-unused-parameter -framework Foundation -o iteration iteration.m | |
| // Run this by passing arguments on the command line. Run without any | |
| // arguments to see the supported flags. Each time a flag is used causes | |
| // that test to be run and timed, with the time (in seconds) output when | |
| // it finishes. Be careful not to do anything else on your machine (such | |
| // as surfing Redding while getting bored looking at the terminal) otherwise |
| // | |
| // FGOManagedObjectContextStack.h | |
| // | |
| // Created by Indragie Karunaratne on 2012-12-23. | |
| // | |
| #import <Foundation/Foundation.h> | |
| typedef void (^FGOConfigurationBlock)(id); |