Changeset 553 for trunk/Cocoa


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).

Location:
trunk/Cocoa/Pester/Source
Files:
2 deleted
2 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];
  • trunk/Cocoa/Pester/Source/Pester.xcodeproj/project.pbxproj

    r543 r553  
    109109                E1B11F840CF5F30F004975AA /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E18DAAEE0442D02500050002 /* CoreAudio.framework */; };
    110110                E1B121970CF62FD1004975AA /* NSMenuItem-NJRExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = E1B121960CF62FD1004975AA /* NSMenuItem-NJRExtensions.m */; };
    111                 E1B1219E0CF63858004975AA /* NSImage-NJRExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = E1B1219C0CF63858004975AA /* NSImage-NJRExtensions.m */; };
    112111                E1B121B40CF639A1004975AA /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E1B121B30CF639A1004975AA /* QTKit.framework */; };
    113112/* End PBXBuildFile section */
     
    232231                E1B121950CF62FD1004975AA /* NSMenuItem-NJRExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSMenuItem-NJRExtensions.h"; sourceTree = "<group>"; };
    233232                E1B121960CF62FD1004975AA /* NSMenuItem-NJRExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSMenuItem-NJRExtensions.m"; sourceTree = "<group>"; };
    234                 E1B1219C0CF63858004975AA /* NSImage-NJRExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSImage-NJRExtensions.m"; sourceTree = "<group>"; };
    235                 E1B1219D0CF63858004975AA /* NSImage-NJRExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSImage-NJRExtensions.h"; sourceTree = "<group>"; };
    236233                E1B121B30CF639A1004975AA /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = "<absolute>"; };
    237234                E1B46FE804057E3400050002 /* NJRSplitView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NJRSplitView.h; sourceTree = "<group>"; };
     
    486483                                E16959290437A4A400050002 /* NSFont-NJRExtensions.h */,
    487484                                E169592A0437A4A400050002 /* NSFont-NJRExtensions.m */,
    488                                 E1B1219C0CF63858004975AA /* NSImage-NJRExtensions.m */,
    489                                 E1B1219D0CF63858004975AA /* NSImage-NJRExtensions.h */,
    490485                                F59E4C0E036B43D2016B311C /* QTMovie-NJRExtensions.h */,
    491486                                F59E4C0D036B43D2016B311C /* QTMovie-NJRExtensions.m */,
     
    909904                                E1B11F7D0CF5F30F004975AA /* NJRNonCenteringWindow.m in Sources */,
    910905                                E1B121970CF62FD1004975AA /* NSMenuItem-NJRExtensions.m in Sources */,
    911                                 E1B1219E0CF63858004975AA /* NSImage-NJRExtensions.m in Sources */,
    912906                                E15044670CFCDC7E00DE47E9 /* NJRValidatingField.m in Sources */,
    913907                        );
Note: See TracChangeset for help on using the changeset viewer.