Changeset 1025


Ignore:
Timestamp:
Oct 21, 2006, 8:41:10 PM (15 years ago)
Author:
livings124
Message:

More small changes, including to window placement.

Location:
trunk/macosx
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/English.lproj/InfoWindow.nib/info.nib

    r969 r1025  
    44<dict>
    55        <key>IBDocumentLocation</key>
    6         <string>69 61 356 240 0 0 1152 842 </string>
     6        <string>58 51 356 240 0 0 1024 746 </string>
    77        <key>IBEditorPositions</key>
    88        <dict>
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r991 r1025  
    1414                <string>337 545 477 67 0 0 1152 842 </string>
    1515                <key>29</key>
    16                 <string>280 699 451 44 0 0 1152 842 </string>
     16                <string>229 615 451 44 0 0 1024 746 </string>
    1717                <key>456</key>
    1818                <string>340 316 240 225 0 0 1024 746 </string>
     
    2525        <string>446.1</string>
    2626        <key>IBLockedObjects</key>
    27         <array>
    28                 <integer>21</integer>
    29         </array>
     27        <array/>
    3028        <key>IBOldestOS</key>
    3129        <integer>3</integer>
    3230        <key>IBOpenObjects</key>
    3331        <array>
     32                <integer>21</integer>
    3433                <integer>29</integer>
    35                 <integer>21</integer>
    3634        </array>
    3735        <key>IBSystem Version</key>
  • trunk/macosx/InfoWindowController.m

    r1024 r1025  
    6060@implementation InfoWindowController
    6161
     62- (id) initWithWindowNibName: (NSString *) name
     63{
     64    if ((self = [super initWithWindowNibName: name]))
     65    {
     66        fAppIcon = [[NSApp applicationIconImage] copy];
     67        fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
     68        fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
     69        fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];   
     70    }
     71    return self;
     72}
     73
    6274- (void) awakeFromNib
    6375{
    64     fAppIcon = [[NSApp applicationIconImage] copy];
    65     fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
    66     fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
    67     fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];
    68    
    69     fTorrents = [[NSArray alloc] init];
    7076    fPeers = [[NSMutableArray alloc] initWithCapacity: 30];
    7177    fFiles = [[NSMutableArray alloc] initWithCapacity: 6];
     
    108114- (void) updateInfoForTorrents: (NSArray *) torrents
    109115{
    110     [fTorrents release];
     116    if (fTorrents)
     117        [fTorrents release];
    111118    fTorrents = [torrents retain];
    112119
  • trunk/macosx/MessageWindowController.m

    r920 r1025  
    7373- (void) awakeFromNib
    7474{
     75    [[self window] center];
     76   
    7577    int level = [[NSUserDefaults standardUserDefaults] integerForKey: @"MessageLevel"];
    7678    if (level == TR_MSG_ERR)
  • trunk/macosx/PrefsController.m

    r992 r1025  
    6969        fHandle = handle;
    7070       
     71        //checks for old version upload speed of -1
     72        if ([fDefaults integerForKey: @"UploadLimit"] < 0)
     73        {
     74            [fDefaults setInteger: 20 forKey: @"UploadLimit"];
     75            [fDefaults setBool: NO forKey: @"CheckUpload"];
     76        }
     77       
    7178        [[self window] update]; //make sure nib is loaded right away
    7279    }
     
    137144    fNatStatusTimer = [NSTimer scheduledTimerWithTimeInterval: 5.0 target: self
    138145                        selector: @selector(updateNatStatus) userInfo: nil repeats: YES];
    139    
    140     //checks for old version upload speed of -1
    141     if ([fDefaults integerForKey: @"UploadLimit"] < 0)
    142     {
    143         [fDefaults setInteger: 20 forKey: @"UploadLimit"];
    144         [fDefaults setBool: NO forKey: @"CheckUpload"];
    145     }
    146146   
    147147    //set upload limit
Note: See TracChangeset for help on using the changeset viewer.