Skip to content

Commit

Permalink
Minor clean-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzoua committed May 1, 2016
1 parent 7bf67e2 commit 69c9d0b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
5 changes: 1 addition & 4 deletions ExpandedPathToIconTransformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,4 @@
#import <Foundation/Foundation.h>

@interface ExpandedPathToIconTransformer : NSValueTransformer
{
}

@end
@end
3 changes: 2 additions & 1 deletion ExpandedPathToIconTransformer.m
Original file line number Diff line number Diff line change
Expand Up @@ -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')];
Expand All @@ -54,4 +55,4 @@ - (id) transformedValue: (id) value
return icon;
}

@end
@end
5 changes: 1 addition & 4 deletions ExpandedPathToPathTransformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,4 @@
#import <Foundation/Foundation.h>

@interface ExpandedPathToPathTransformer : NSValueTransformer
{
}

@end
@end
2 changes: 1 addition & 1 deletion ExpandedPathToPathTransformer.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ - (id) transformedValue: (id) value
return value == nil ? nil : [[NSFileManager defaultManager] displayNameAtPath: value];
}

@end
@end

0 comments on commit 69c9d0b

Please sign in to comment.