Ignore:
Timestamp:
Mar 23, 2007, 2:44:15 PM (15 years ago)
Author:
livings124
Message:

don't launch if the os is less then Tiger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1579 r1582  
    8080+ (void) initialize
    8181{
     82    //make sure system requirements are met
     83    if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_3)
     84    {
     85        NSAlert * alert = [[NSAlert alloc] init];
     86        [alert addButtonWithTitle: NSLocalizedString(@"Quit", "OS update needed -> button")];
     87        [alert setMessageText: NSLocalizedString(@"Transmission requires Mac OS X 10.4 or greater.",
     88                                                "OS update needed -> title")];
     89        [alert setInformativeText: NSLocalizedString(@"Transmission has features that require a more "
     90            "up-to-date operating system. The operating system must be updated before this version can run.",
     91            "OS update needed -> message")];
     92        [alert setAlertStyle: NSWarningAlertStyle];
     93       
     94        [alert runModal];
     95        [alert release];
     96       
     97        exit(0);
     98    }
     99   
    82100    //make sure another Transmission.app isn't running already
    83101    NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
     
    92110        {
    93111            NSAlert * alert = [[NSAlert alloc] init];
    94             [alert addButtonWithTitle: NSLocalizedString(@"OK", "Transmission already running alert -> button")];
    95             [alert setMessageText: NSLocalizedString(@"Transmission is already running",
     112            [alert addButtonWithTitle: NSLocalizedString(@"Quit", "Transmission already running alert -> button")];
     113            [alert setMessageText: NSLocalizedString(@"Transmission is already running.",
    96114                                                    "Transmission already running alert -> title")];
    97115            [alert setInformativeText: NSLocalizedString(@"There is already a copy of Transmission running. "
Note: See TracChangeset for help on using the changeset viewer.