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
    1
    2
    3
    4
    5
    6
    
    NSString *tempName = [NSString stringWithCString:tmpnam(nil) 
                           encoding:[NSString defaultCStringEncoding]];	
    if (nil == tempName) return;
     
    QTMovie *movie = [[QTMovie alloc] initToWritableFile:tempName 
                          error:NULL];