Ignore:
Timestamp:
07/18/09 05:59:36 (15 years ago)
Author:
Nicholas Riley
Message:

No longer need special code to scale icons (it had issues, anyway).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/NJRFSObjectSelector.m

    r355 r553  
    11#import "NJRFSObjectSelector.h"
    22#import "NSMenuItem-NJRExtensions.h"
    3 #import "NSImage-NJRExtensions.h"
    43#import "NSString-NJRExtensions.h"
    54#include <Carbon/Carbon.h>
     
    8180    }
    8281    return NO;
    83 }
    84 
    85 - (void)setImage:(NSImage *)image;
    86 {
    87     // XXX change to use IconRef; see ICeCoffEELabeledIconCell and Google
    88     [super setImage: [image bestFitImageForSize: [[self cell] cellSize]]];
    8982}
    9083
     
    139132        NSMenuItem *item;
    140133        if (path != nil) { // can resolve alias
    141             [self setImage: [[NSWorkspace sharedWorkspace] iconForFile: path]];
     134            [self setImage: [[NSWorkspace sharedWorkspace] iconForFile: path]];
    142135            {   // set image first so titleRectForBounds: returns the correct value
    143136                NSMutableString *title = [[fmgr displayNameAtPath: path] mutableCopy];
Note: See TracChangeset for help on using the changeset viewer.