We now require Mac OS X 10.6 or later. Make that change and all the nice little adjustments that go with it.

This commit is contained in:
Mitchell Livingston
2011-10-06 00:30:40 +00:00
parent 315b9b60c5
commit 0808bdd2fe
217 changed files with 43773 additions and 105000 deletions

View File

@@ -27,7 +27,6 @@
#import "BlocklistScheduler.h"
#import "PortChecker.h"
#import "BonjourController.h"
#import "NSApplicationAdditions.h"
#import "NSStringAdditions.h"
#import "UKKQueue.h"
@@ -541,20 +540,7 @@ tr_session * fHandle;
NSDate * updatedDate = [fDefaults objectForKey: @"BlocklistNewLastUpdateSuccess"];
if (updatedDate)
{
if ([NSApp isOnSnowLeopardOrBetter])
updatedDateString = [NSDateFormatter localizedStringFromDate: updatedDate dateStyle: NSDateFormatterFullStyle
timeStyle: NSDateFormatterShortStyle];
else
{
NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateStyle: NSDateFormatterFullStyle];
[dateFormatter setTimeStyle: NSDateFormatterShortStyle];
updatedDateString = [dateFormatter stringFromDate: updatedDate];
[dateFormatter release];
}
}
updatedDateString = [NSDateFormatter localizedStringFromDate: updatedDate dateStyle: NSDateFormatterFullStyle timeStyle: NSDateFormatterShortStyle];
else
updatedDateString = NSLocalizedString(@"N/A", "Prefs -> blocklist -> message");
}
@@ -1370,7 +1356,7 @@ tr_session * fHandle;
return;
NSRect windowRect = [window frame];
float difference = ([view frame].size.height - [[window contentView] frame].size.height) * [window userSpaceScaleFactor];
const CGFloat difference = (NSHeight([view frame]) - NSHeight([[window contentView] frame])) * [window userSpaceScaleFactor];
windowRect.origin.y -= difference;
windowRect.size.height += difference;