Commit 6c0b712c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Remove trailing spaces

parent fafb6def
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
VLCMedia * media; VLCMedia * media;
VLCStreamSession * streamSession; VLCStreamSession * streamSession;
NSString * outputFilePath; NSString * outputFilePath;
NSString * outputFolderPath; NSString * outputFolderPath;
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
- (id)transformedValue:(id)value - (id)transformedValue:(id)value
{ {
if( !value ) return nil; if( !value ) return nil;
if(![value respondsToSelector: @selector(floatValue)]) if(![value respondsToSelector: @selector(floatValue)])
{ {
[NSException raise: NSInternalInconsistencyException [NSException raise: NSInternalInconsistencyException
...@@ -31,14 +31,14 @@ ...@@ -31,14 +31,14 @@
[value class]]; [value class]];
return nil; return nil;
} }
return [NSNumber numberWithFloat: [value floatValue]*10000.]; return [NSNumber numberWithFloat: [value floatValue]*10000.];
} }
- (id)reverseTransformedValue:(id)value - (id)reverseTransformedValue:(id)value
{ {
if( !value ) return nil; if( !value ) return nil;
if(![value respondsToSelector: @selector(floatValue)]) if(![value respondsToSelector: @selector(floatValue)])
{ {
[NSException raise: NSInternalInconsistencyException [NSException raise: NSInternalInconsistencyException
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
[value class]]; [value class]];
return nil; return nil;
} }
return [NSNumber numberWithFloat: [value floatValue]/10000.]; return [NSNumber numberWithFloat: [value floatValue]/10000.];
} }
@end @end
...@@ -65,9 +65,9 @@ ...@@ -65,9 +65,9 @@
if(self = [super init]) if(self = [super init])
{ {
[self bind:@"outputFolderPath" toObject:[NSUserDefaultsController sharedUserDefaultsController] [self bind:@"outputFolderPath" toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:@"values.outputFolderPath" options:nil]; withKeyPath:@"values.outputFolderPath" options:nil];
[[[NSUserDefaultsController sharedUserDefaultsController] values] bind:@"outputFolderPath" toObject:self [[[NSUserDefaultsController sharedUserDefaultsController] values] bind:@"outputFolderPath" toObject:self
withKeyPath:@"outputFolderPath" options:nil]; withKeyPath:@"outputFolderPath" options:nil];
VLCFloat10000FoldTransformer *float100fold; VLCFloat10000FoldTransformer *float100fold;
float100fold = [[[VLCFloat10000FoldTransformer alloc] init] autorelease]; float100fold = [[[VLCFloat10000FoldTransformer alloc] init] autorelease];
[NSValueTransformer setValueTransformer:(id)float100fold forName:@"Float10000FoldTransformer"]; [NSValueTransformer setValueTransformer:(id)float100fold forName:@"Float10000FoldTransformer"];
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
/* Set the icon */ /* Set the icon */
[openConvertedFileButton setImage:[[NSWorkspace sharedWorkspace] iconForFile:[self outputFilePath]]]; [openConvertedFileButton setImage:[[NSWorkspace sharedWorkspace] iconForFile:[self outputFilePath]]];
/* Rename the link with a nicer name */ /* Rename the link with a nicer name */
NSString * oldPath = [self outputFilePath]; NSString * oldPath = [self outputFilePath];
[self freezeOutputFilePath]; [self freezeOutputFilePath];
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
} }
- (void)drawRect:(NSRect)rect - (void)drawRect:(NSRect)rect
{ {
NSColor * topGradient = [NSColor colorWithCalibratedWhite:.12f alpha:1.0]; NSColor * topGradient = [NSColor colorWithCalibratedWhite:.12f alpha:1.0];
NSColor * bottomGradient = [NSColor colorWithCalibratedWhite:0.55f alpha:0.9]; NSColor * bottomGradient = [NSColor colorWithCalibratedWhite:0.55f alpha:0.9];
NSGradient * gradient = [[NSGradient alloc] initWithColorsAndLocations:bottomGradient, 0.f, bottomGradient, 0.1f, topGradient, 1.f, nil]; NSGradient * gradient = [[NSGradient alloc] initWithColorsAndLocations:bottomGradient, 0.f, bottomGradient, 0.1f, topGradient, 1.f, nil];
[gradient drawInRect:self.bounds angle:90.0]; [gradient drawInRect:self.bounds angle:90.0];
[super drawRect:rect]; [super drawRect:rect];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment