1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

Don't call setRestorationClass: on 10.6.

This commit is contained in:
Mitchell Livingston 2012-06-18 01:33:27 +00:00
parent f26cee5de6
commit 739ae4a99a
4 changed files with 11 additions and 4 deletions

View file

@ -24,6 +24,7 @@
#import "CreatorWindowController.h"
#import "Controller.h"
#import "NSApplicationAdditions.h"
#import "NSStringAdditions.h"
#import "transmission.h" // required by utils.h
@ -139,6 +140,7 @@
- (void) awakeFromNib
{
if ([NSApp isOnLionOrBetter])
[[self window] setRestorationClass: [self class]];
NSString * name = [fPath lastPathComponent];

View file

@ -58,6 +58,7 @@
[window setFrameAutosaveName: @"MessageWindowFrame"];
[window setFrameUsingName: @"MessageWindowFrame"];
if ([NSApp isOnLionOrBetter])
[window setRestorationClass: [self class]];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(resizeColumn)

View file

@ -28,6 +28,7 @@
#import "Controller.h"
#import "PortChecker.h"
#import "BonjourController.h"
#import "NSApplicationAdditions.h"
#import "NSStringAdditions.h"
#import "UKKQueue.h"
@ -160,6 +161,7 @@
{
fHasLoaded = YES;
if ([NSApp isOnLionOrBetter])
[[self window] setRestorationClass: [self class]];
NSToolbar * toolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];

View file

@ -24,6 +24,7 @@
#import "StatsWindowController.h"
#import "Controller.h"
#import "NSApplicationAdditions.h"
#import "NSStringAdditions.h"
#define UPDATE_SECONDS 1.0
@ -66,6 +67,7 @@ tr_session * fLib = NULL;
[[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSModalPanelRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSEventTrackingRunLoopMode];
if ([NSApp isOnLionOrBetter])
[[self window] setRestorationClass: [self class]];
[[self window] setTitle: NSLocalizedString(@"Statistics", "Stats window -> title")];