Changeset 553 for trunk/Cocoa/Pester/Source/NJRFSObjectSelector.m
- Timestamp:
- 07/18/09 05:59:36 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/NJRFSObjectSelector.m
r355 r553 1 1 #import "NJRFSObjectSelector.h" 2 2 #import "NSMenuItem-NJRExtensions.h" 3 #import "NSImage-NJRExtensions.h"4 3 #import "NSString-NJRExtensions.h" 5 4 #include <Carbon/Carbon.h> … … 81 80 } 82 81 return NO; 83 }84 85 - (void)setImage:(NSImage *)image;86 {87 // XXX change to use IconRef; see ICeCoffEELabeledIconCell and Google88 [super setImage: [image bestFitImageForSize: [[self cell] cellSize]]];89 82 } 90 83 … … 139 132 NSMenuItem *item; 140 133 if (path != nil) { // can resolve alias 141 134 [self setImage: [[NSWorkspace sharedWorkspace] iconForFile: path]]; 142 135 { // set image first so titleRectForBounds: returns the correct value 143 136 NSMutableString *title = [[fmgr displayNameAtPath: path] mutableCopy];
Note:
See TracChangeset
for help on using the changeset viewer.