summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFSound/macsrc/NamedSlider.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/plugins/DFSound/macsrc/NamedSlider.m')
-rwxr-xr-xmacosx/plugins/DFSound/macsrc/NamedSlider.m17
1 files changed, 9 insertions, 8 deletions
diff --git a/macosx/plugins/DFSound/macsrc/NamedSlider.m b/macosx/plugins/DFSound/macsrc/NamedSlider.m
index 2db2f25e..750d0376 100755
--- a/macosx/plugins/DFSound/macsrc/NamedSlider.m
+++ b/macosx/plugins/DFSound/macsrc/NamedSlider.m
@@ -1,19 +1,16 @@
#import "NamedSlider.h"
@implementation NamedSlider
+@synthesize pluginClass;
- (void)dealloc
{
- [strings release];
+ self.strings = nil;
+
[super dealloc];
}
-- (void)setStrings:(NSArray *)theStrings
-{
- [theStrings retain];
- [strings release];
- strings = theStrings;
-}
+@synthesize strings;
- (NSString *)stringValue
{
@@ -22,7 +19,11 @@
if (index >= 0 && index < [strings count])
return [strings objectAtIndex:index];
- return @"(Unknown)";
+ if (!pluginClass) {
+ return @"(Unknown)";
+ } else {
+ return [[NSBundle bundleForClass:pluginClass] localizedStringForKey:@"(Unknown)" value:@"" table:nil];
+ }
}
- (void)setIntValue:(int)value