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

File:
1 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];
Note: See TracChangeset for help on using the changeset viewer.