use LSMinimumSystemVersion instead of custom version check, because on < 10.4 it will never reach that custom code
This commit is contained in:
parent
98575a0169
commit
c9688d89f8
|
@ -101,24 +101,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
|
|
||||||
+ (void) initialize
|
+ (void) initialize
|
||||||
{
|
{
|
||||||
//make sure system requirements are met
|
|
||||||
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_3)
|
|
||||||
{
|
|
||||||
NSAlert * alert = [[NSAlert alloc] init];
|
|
||||||
[alert addButtonWithTitle: NSLocalizedString(@"Quit", "OS update needed -> button")];
|
|
||||||
[alert setMessageText: NSLocalizedString(@"Transmission requires Mac OS X 10.4 or greater.",
|
|
||||||
"OS update needed -> title")];
|
|
||||||
[alert setInformativeText: NSLocalizedString(@"Transmission has features that require a more "
|
|
||||||
"up-to-date operating system. The operating system must be updated before this version can run.",
|
|
||||||
"OS update needed -> message")];
|
|
||||||
[alert setAlertStyle: NSWarningAlertStyle];
|
|
||||||
|
|
||||||
[alert runModal];
|
|
||||||
[alert release];
|
|
||||||
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
//make sure another Transmission.app isn't running already
|
//make sure another Transmission.app isn't running already
|
||||||
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
|
||||||
int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];
|
int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
<string>TR##</string>
|
<string>TR##</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>%%BUNDLE_VERSION%%</string>
|
<string>%%BUNDLE_VERSION%%</string>
|
||||||
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
<string>10.4.0</string>
|
||||||
<key>NSAppleScriptEnabled</key>
|
<key>NSAppleScriptEnabled</key>
|
||||||
<string>YES</string>
|
<string>YES</string>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
|
|
|
@ -252,17 +252,15 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
[titleString drawInRect: titleRect];
|
[titleString drawInRect: titleRect];
|
||||||
|
|
||||||
//progress
|
//progress
|
||||||
NSRect progressRect;
|
|
||||||
if (!minimal)
|
if (!minimal)
|
||||||
{
|
{
|
||||||
NSAttributedString * progressString = [self attributedStatusString: [torrent progressString] withColor: statusColor];
|
NSAttributedString * progressString = [self attributedStatusString: [torrent progressString] withColor: statusColor];
|
||||||
progressRect = [self rectForProgressWithString: progressString inBounds: cellFrame];
|
NSRect progressRect = [self rectForProgressWithString: progressString inBounds: cellFrame];
|
||||||
[progressString drawInRect: progressRect];
|
[progressString drawInRect: progressRect];
|
||||||
}
|
}
|
||||||
|
|
||||||
//bar
|
//bar
|
||||||
NSRect barRect = [self barRectForBounds: cellFrame];
|
NSRect barRect = [self barRectForBounds: cellFrame];
|
||||||
//[fDefaults boolForKey: @"UseAdvancedBar"] ? [self drawAdvancedBar: barRect] : [self drawSimpleBar: barRect];
|
|
||||||
[self drawBar: barRect];
|
[self drawBar: barRect];
|
||||||
|
|
||||||
//status
|
//status
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
stopAllTorrents = id;
|
stopAllTorrents = id;
|
||||||
stopSelectedTorrents = id;
|
stopSelectedTorrents = id;
|
||||||
switchFilter = id;
|
switchFilter = id;
|
||||||
toggleAdvancedBar = id;
|
|
||||||
toggleFilterBar = id;
|
toggleFilterBar = id;
|
||||||
toggleSmallView = id;
|
toggleSmallView = id;
|
||||||
toggleSpeedLimit = id;
|
toggleSpeedLimit = id;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<key>1041</key>
|
<key>1041</key>
|
||||||
<string>480 344 208 149 0 0 1680 1028 </string>
|
<string>480 344 208 149 0 0 1680 1028 </string>
|
||||||
<key>1480</key>
|
<key>1480</key>
|
||||||
<string>687 587 420 63 0 0 1680 1028 </string>
|
<string>630 671 420 63 0 0 1680 1028 </string>
|
||||||
<key>1603</key>
|
<key>1603</key>
|
||||||
<string>601 669 477 67 0 0 1680 1028 </string>
|
<string>601 669 477 67 0 0 1680 1028 </string>
|
||||||
<key>1936</key>
|
<key>1936</key>
|
||||||
|
@ -36,8 +36,8 @@
|
||||||
<key>IBOpenObjects</key>
|
<key>IBOpenObjects</key>
|
||||||
<array>
|
<array>
|
||||||
<integer>29</integer>
|
<integer>29</integer>
|
||||||
<integer>2043</integer>
|
|
||||||
<integer>1603</integer>
|
<integer>1603</integer>
|
||||||
|
<integer>2043</integer>
|
||||||
<integer>21</integer>
|
<integer>21</integer>
|
||||||
<integer>1480</integer>
|
<integer>1480</integer>
|
||||||
</array>
|
</array>
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue