Changeset 543 for trunk/Cocoa/Pester/Source/PSMovieAlert.m
- Timestamp:
- 06/15/09 06:16:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSMovieAlert.m
r133 r543 11 11 #import "PSMovieAlertController.h" 12 12 #import "NSDictionary-NJRExtensions.h" 13 #import " NSMovie-NJRExtensions.h"13 #import "QTMovie-NJRExtensions.h" 14 14 #import "BDAlias.h" 15 15 … … 36 36 repetitions = numReps; 37 37 // 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]; 39 39 if (movie == nil) { 40 40 [self release]; 41 41 self = nil; 42 42 } else { 43 hasAudio = [movie hasAudio];44 hasVideo = [movie hasVideo];43 hasAudio = [movie NJR_hasAudio]; 44 hasVideo = [movie NJR_hasVideo]; 45 45 46 46 if (!hasAudio && !hasVideo) { … … 63 63 } 64 64 65 - ( NSMovie *)movie;65 - (QTMovie *)movie; 66 66 { 67 67 return movie; … … 97 97 - (NSAttributedString *)actionDescription; 98 98 { 99 BOOL isStatic = [movie isStatic];99 BOOL isStatic = [movie NJR_isStatic]; 100 100 NSMutableAttributedString *string = [[(isStatic ? @"Show " : @"Play ") small] mutableCopy]; 101 101 NSString *kindString = nil, *name = [alias displayNameWithKindString: &kindString];
Note:
See TracChangeset
for help on using the changeset viewer.