Changeset 543 for trunk/Cocoa/Pester/Source/PSMediaAlert.m
- Timestamp:
- 06/15/09 06:16:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSMediaAlert.m
r364 r543 10 10 #import "NSDictionary-NJRExtensions.h" 11 11 #import "NJRSoundManager.h" 12 #import <QuickTime/Movies.h>13 12 14 13 // property list keys 15 14 static NSString * const PLAlertRepetitions = @"times"; // NSString 16 15 static NSString * const PLAlertOutputVolume = @"volume"; // NSNumber 16 17 static const float PSMediaAlertNoVolume = 0; 17 18 18 19 @implementation PSMediaAlert … … 50 51 outputVolume = volume; 51 52 else 52 outputVolume = kNoVolume;53 outputVolume = PSMediaAlertNoVolume; 53 54 } 54 55 … … 59 60 NSMutableDictionary *plAlert = [[super propertyListRepresentation] mutableCopy]; 60 61 [plAlert setObject: [NSNumber numberWithUnsignedShort: repetitions] forKey: PLAlertRepetitions]; 61 if (outputVolume != kNoVolume) {62 if (outputVolume != PSMediaAlertNoVolume) { 62 63 [plAlert setObject: [NSNumber numberWithFloat: outputVolume] forKey: PLAlertOutputVolume]; 63 64 }
Note:
See TracChangeset
for help on using the changeset viewer.