Changeset 3194


Ignore:
Timestamp:
Sep 26, 2007, 11:49:21 PM (15 years ago)
Author:
livings124
Message:

use LSMinimumSystemVersion instead of custom version check, because on < 10.4 it will never reach that custom code

Location:
trunk/macosx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3193 r3194  
    102102+ (void) initialize
    103103{
    104     //make sure system requirements are met
    105     if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_3)
    106     {
    107         NSAlert * alert = [[NSAlert alloc] init];
    108         [alert addButtonWithTitle: NSLocalizedString(@"Quit", "OS update needed -> button")];
    109         [alert setMessageText: NSLocalizedString(@"Transmission requires Mac OS X 10.4 or greater.",
    110                                                 "OS update needed -> title")];
    111         [alert setInformativeText: NSLocalizedString(@"Transmission has features that require a more "
    112             "up-to-date operating system. The operating system must be updated before this version can run.",
    113             "OS update needed -> message")];
    114         [alert setAlertStyle: NSWarningAlertStyle];
    115        
    116         [alert runModal];
    117         [alert release];
    118        
    119         exit(0);
    120     }
    121    
    122104    //make sure another Transmission.app isn't running already
    123105    NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
  • trunk/macosx/Info.plist.in

    r3083 r3194  
    4646        <key>CFBundleVersion</key>
    4747        <string>%%BUNDLE_VERSION%%</string>
     48        <key>LSMinimumSystemVersion</key>
     49        <string>10.4.0</string>
    4850        <key>NSAppleScriptEnabled</key>
    4951        <string>YES</string>
  • trunk/macosx/TorrentCell.m

    r3193 r3194  
    253253   
    254254    //progress
    255     NSRect progressRect;
    256255    if (!minimal)
    257256    {
    258257        NSAttributedString * progressString = [self attributedStatusString: [torrent progressString] withColor: statusColor];
    259         progressRect = [self rectForProgressWithString: progressString inBounds: cellFrame];
     258        NSRect progressRect = [self rectForProgressWithString: progressString inBounds: cellFrame];
    260259        [progressString drawInRect: progressRect];
    261260    }
     
    263262    //bar
    264263    NSRect barRect = [self barRectForBounds: cellFrame];
    265     //[fDefaults boolForKey: @"UseAdvancedBar"] ? [self drawAdvancedBar: barRect] : [self drawSimpleBar: barRect];
    266264    [self drawBar: barRect];
    267265   
  • trunk/macosx/en.lproj/MainMenu.nib/classes.nib

    r3150 r3194  
    4444                stopSelectedTorrents = id;
    4545                switchFilter = id;
    46                 toggleAdvancedBar = id;
    4746                toggleFilterBar = id;
    4847                toggleSmallView = id;
  • trunk/macosx/en.lproj/MainMenu.nib/info.nib

    r3193 r3194  
    1010                <string>480 344 208 149 0 0 1680 1028 </string>
    1111                <key>1480</key>
    12                 <string>687 587 420 63 0 0 1680 1028 </string>
     12                <string>630 671 420 63 0 0 1680 1028 </string>
    1313                <key>1603</key>
    1414                <string>601 669 477 67 0 0 1680 1028 </string>
     
    3737        <array>
    3838                <integer>29</integer>
     39                <integer>1603</integer>
    3940                <integer>2043</integer>
    40                 <integer>1603</integer>
    4141                <integer>21</integer>
    4242                <integer>1480</integer>
Note: See TracChangeset for help on using the changeset viewer.