Changeset 2261


Ignore:
Timestamp:
Jul 1, 2007, 3:17:01 AM (15 years ago)
Author:
livings124
Message:

fix blurry icon when resizing the creator window

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/CreatorWindowController.h

    r2167 r2261  
    2929@interface CreatorWindowController : NSWindowController
    3030{
    31     IBOutlet NSImageView * fIcon;
     31    IBOutlet NSImageView * fIconView;
    3232    IBOutlet NSTextField * fNameField, * fStatusField, * fPiecesField, * fTrackerField, * fLocationField;
    3333    IBOutlet NSTextView * fCommentView;
  • trunk/macosx/CreatorWindowController.m

    r2175 r2261  
    9494    BOOL multifile = !fInfo->isSingleFile;
    9595   
    96     #warning fix when resizing window
    97     [fIcon setImage: [[NSWorkspace sharedWorkspace] iconForFileType: multifile
    98                         ? NSFileTypeForHFSTypeCode('fldr') : [fPath pathExtension]]];
     96    NSImage * icon = [[NSWorkspace sharedWorkspace] iconForFileType: multifile
     97                        ? NSFileTypeForHFSTypeCode('fldr') : [fPath pathExtension]];
     98    [icon setSize: [fIconView frame].size];
     99    [fIconView setImage: icon];
    99100   
    100101    NSString * statusString = [NSString stringForFileSize: fInfo->totalSize];
  • trunk/macosx/English.lproj/Creator.nib/classes.nib

    r2140 r2261  
    1212            OUTLETS = {
    1313                fCommentView = NSTextView;
    14                 fIcon = NSImageView;
     14                fIconView = NSImageView;
    1515                fLocationField = NSTextField;
    1616                fNameField = NSTextField;
  • trunk/macosx/English.lproj/Creator.nib/info.nib

    r2140 r2261  
    1515        <array>
    1616                <integer>5</integer>
    17                 <integer>56</integer>
    1817        </array>
    1918        <key>IBSystem Version</key>
    20         <string>8P135</string>
     19        <string>8R218</string>
    2120</dict>
    2221</plist>
Note: See TracChangeset for help on using the changeset viewer.