Ignore:
Timestamp:
06/15/09 06:16:52 (15 years ago)
Author:
Nicholas Riley
Message:

Minimally convert media playback to QTKit. Some direct QuickTime access still needs migrating.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/PSMovieAlert.m

    r133 r543  
    1111#import "PSMovieAlertController.h"
    1212#import "NSDictionary-NJRExtensions.h"
    13 #import "NSMovie-NJRExtensions.h"
     13#import "QTMovie-NJRExtensions.h"
    1414#import "BDAlias.h"
    1515
     
    3636        repetitions = numReps;
    3737        // XXX if we support remote movie URLs, need to call EnterMovies() ourselves at least in Jaguar (_MacTech_ December 2002, p. 64); also should do async movie loading (p. 73Ð74).
    38         movie = [[NSMovie alloc] initWithURL: [NSURL fileURLWithPath: path] byReference: YES];
     38        movie = [[QTMovie alloc] initWithFile: path error: NULL];
    3939        if (movie == nil) {
    4040            [self release];
    4141            self = nil;
    4242        } else {
    43             hasAudio = [movie hasAudio];
    44             hasVideo = [movie hasVideo];
     43            hasAudio = [movie NJR_hasAudio];
     44            hasVideo = [movie NJR_hasVideo];
    4545           
    4646            if (!hasAudio && !hasVideo) {
     
    6363}
    6464
    65 - (NSMovie *)movie;
     65- (QTMovie *)movie;
    6666{
    6767    return movie;
     
    9797- (NSAttributedString *)actionDescription;
    9898{
    99     BOOL isStatic = [movie isStatic];
     99    BOOL isStatic = [movie NJR_isStatic];
    100100    NSMutableAttributedString *string = [[(isStatic ? @"Show " : @"Play ") small] mutableCopy];
    101101    NSString *kindString = nil, *name = [alias displayNameWithKindString: &kindString];
Note: See TracChangeset for help on using the changeset viewer.