From 69c9d0b3b3b08f22f1419df0022294e1d6a03d95 Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Sun, 1 May 2016 16:02:33 -0700 Subject: [PATCH] Minor clean-ups --- ExpandedPathToIconTransformer.h | 5 +---- ExpandedPathToIconTransformer.m | 3 ++- ExpandedPathToPathTransformer.h | 5 +---- ExpandedPathToPathTransformer.m | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ExpandedPathToIconTransformer.h b/ExpandedPathToIconTransformer.h index f506dde..e3a37e2 100644 --- a/ExpandedPathToIconTransformer.h +++ b/ExpandedPathToIconTransformer.h @@ -25,7 +25,4 @@ #import @interface ExpandedPathToIconTransformer : NSValueTransformer -{ -} - -@end \ No newline at end of file +@end diff --git a/ExpandedPathToIconTransformer.m b/ExpandedPathToIconTransformer.m index 8b894de..4c227e0 100644 --- a/ExpandedPathToIconTransformer.m +++ b/ExpandedPathToIconTransformer.m @@ -43,6 +43,7 @@ - (id) transformedValue: (id) value NSString * path = [value stringByExpandingTildeInPath]; NSImage * icon; + //show a folder icon if the folder doesn't exist if ([[path pathExtension] isEqualToString: @""] && ![[NSFileManager defaultManager] fileExistsAtPath: path]) icon = [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')]; @@ -54,4 +55,4 @@ - (id) transformedValue: (id) value return icon; } -@end \ No newline at end of file +@end diff --git a/ExpandedPathToPathTransformer.h b/ExpandedPathToPathTransformer.h index 8105cef..e9e68c5 100644 --- a/ExpandedPathToPathTransformer.h +++ b/ExpandedPathToPathTransformer.h @@ -25,7 +25,4 @@ #import @interface ExpandedPathToPathTransformer : NSValueTransformer -{ -} - -@end \ No newline at end of file +@end diff --git a/ExpandedPathToPathTransformer.m b/ExpandedPathToPathTransformer.m index 91a1724..a204d0b 100644 --- a/ExpandedPathToPathTransformer.m +++ b/ExpandedPathToPathTransformer.m @@ -41,4 +41,4 @@ - (id) transformedValue: (id) value return value == nil ? nil : [[NSFileManager defaultManager] displayNameAtPath: value]; } -@end \ No newline at end of file +@end