Changeset 133 for trunk/Cocoa/Pester/Source/PSMovieAlert.m
- Timestamp:
- 04/09/03 05:44:11 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSMovieAlert.m
r103 r133 87 87 - (NSString *)description; 88 88 { 89 return [NSString stringWithFormat: @"PSMovieAlert (%@%@): %@, repeats %hu times ", hasAudio ? @"A" : @"", hasVideo ? @"V" : @"", [alias fullPath], repetitions];89 return [NSString stringWithFormat: @"PSMovieAlert (%@%@): %@, repeats %hu times%@", hasAudio ? @"A" : @"", hasVideo ? @"V" : @"", [alias fullPath], repetitions, hasAudio && outputVolume != kNoVolume ? [NSString stringWithFormat: @" at %.0f%% volume", outputVolume * 100] : @""]; 90 90 } 91 91 … … 106 106 [string appendAttributedString: [[NSString stringWithFormat: @" %hu times", repetitions] small]]; 107 107 } 108 if (hasAudio && outputVolume != kNoVolume) { 109 [string appendAttributedString: [[NSString stringWithFormat: @" at %.0f%% volume", outputVolume * 100] small]]; 110 } 108 111 return [string autorelease]; 109 112 } … … 121 124 - (id)initWithPropertyList:(NSDictionary *)dict; 122 125 { 123 return [self initWithMovieFileAlias: [BDAlias aliasWithData: [dict objectForRequiredKey: PLAlertAlias]] 124 repetitions: [[dict objectForRequiredKey: PLAlertRepetitions] unsignedShortValue]]; 126 if ( (self = [super initWithPropertyList: dict]) != nil) 127 [self initWithMovieFileAlias: [BDAlias aliasWithData: [dict objectForRequiredKey: PLAlertAlias]] 128 repetitions: [[dict objectForRequiredKey: PLAlertRepetitions] unsignedShortValue]]; 129 return self; 125 130 } 126 131
Note:
See TracChangeset
for help on using the changeset viewer.