X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=OSX%2FInvertedSlider.m;h=327162a355b2ea62a4fdffc51b0d96df252e920d;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hp=d291ffec27779d275e45bc9e85c7ec5507ea1a85;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/OSX/InvertedSlider.m b/OSX/InvertedSlider.m index d291ffec..327162a3 100644 --- a/OSX/InvertedSlider.m +++ b/OSX/InvertedSlider.m @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 2006-2010 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -23,7 +23,7 @@ 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; } @@ -63,6 +63,7 @@ - (NSAttributedString *)attributedStringValue; { + // #### "Build and Analyze" says this leaks. Unsure whether this is true. return [[NSAttributedString alloc] initWithString:[self stringValue]]; } @@ -70,7 +71,7 @@ /* Implment all setter methods in terms of "setDoubleValue", above. */ --(void) setFloatValue:(double)v +-(void) setFloatValue:(float)v { [self setDoubleValue:(double)v]; }