might as well dump a bunch of small changes/optimizations I have sitting locally

This commit is contained in:
Mitchell Livingston
2009-12-28 20:05:33 +00:00
parent 78c2abb585
commit cee48f8c07
5 changed files with 17 additions and 30 deletions
+2 -2
View File
@@ -44,10 +44,10 @@
NSString * path = [value stringByExpandingTildeInPath];
NSImage * icon;
//show a folder icon if the folder doesn't exist
if (![[NSFileManager defaultManager] fileExistsAtPath: path] && [[path pathExtension] isEqualToString: @""])
if ([[path pathExtension] isEqualToString: @""] && ![[NSFileManager defaultManager] fileExistsAtPath: path])
icon = [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')];
else
icon = [[NSWorkspace sharedWorkspace] iconForFile: [value stringByExpandingTildeInPath]];
icon = [[NSWorkspace sharedWorkspace] iconForFile: path];
[icon setSize: NSMakeSize(16.0, 16.0)];