QTKit Snippets

by Matt Long

Here are some snippets to help with performing different tasks using the QTKit.

Files

  • Create temporary file for writing QuickTime data
    NSString *tempName = [NSString stringWithCString:tmpnam(nil) 
                           encoding:[NSString defaultCStringEncoding]];	
    if (nil == tempName) return;
    
    QTMovie *movie = [[QTMovie alloc] initToWritableFile:tempName 
                          error:NULL];