-/* xscreensaver, Copyright (c) 2006 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2006-2010 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
double range = high - low;
double off = value - low;
double trans = low + (range - off);
- // NSLog (@" ... %.1f -> %.1f [%.1f - %.1f]\n", value, trans, low, high);
+ // NSLog (@" ... %.1f -> %.1f [%.1f - %.1f]", value, trans, low, high);
return trans;
}
- (NSAttributedString *)attributedStringValue;
{
+ // #### "Build and Analyze" says this leaks. Unsure whether this is true.
return [[NSAttributedString alloc] initWithString:[self stringValue]];
}
/* Implment all setter methods in terms of "setDoubleValue", above.
*/
--(void) setFloatValue:(double)v
+-(void) setFloatValue:(float)v
{
[self setDoubleValue:(double)v];
}