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:
| - (void)drawRect:(NSRect)rect | |
| { | |
| // Drawing code here. | |
| CGContextRef context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; | |
| CGContextSetTextMatrix(context, CGAffineTransformIdentity); | |
| NSAttributedString *str = [[NSAttributedString alloc ] | |
| initWithString:@"学习 Core Text. Learning Core Text. 中华人民共和国。" | |
| attributes:[NSDictionary dictionaryWithObjectsAndKeys:[NSFont fontWithName:@"Adobe Song Std" size:24.0f], (NSString *)kCTFontAttributeName, [NSNumber numberWithBool:YES], (NSString *)kCTVerticalFormsAttributeName, nil]]; | |
| CFAttributedStringRef attrString = (CFAttributedStringRef)str; | |
| CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString(attrString); |
| protobuf | |
| protobuf-2.6.0 | |
| protobuf-2.6.1 | |
| protobuf-master |