mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
Don't call setRestorationClass: on 10.6.
This commit is contained in:
parent
f26cee5de6
commit
739ae4a99a
4 changed files with 11 additions and 4 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#import "CreatorWindowController.h"
|
||||
#import "Controller.h"
|
||||
#import "NSApplicationAdditions.h"
|
||||
#import "NSStringAdditions.h"
|
||||
|
||||
#import "transmission.h" // required by utils.h
|
||||
|
@ -139,7 +140,8 @@
|
|||
|
||||
- (void) awakeFromNib
|
||||
{
|
||||
[[self window] setRestorationClass: [self class]];
|
||||
if ([NSApp isOnLionOrBetter])
|
||||
[[self window] setRestorationClass: [self class]];
|
||||
|
||||
NSString * name = [fPath lastPathComponent];
|
||||
|
||||
|
|
|
@ -58,7 +58,8 @@
|
|||
[window setFrameAutosaveName: @"MessageWindowFrame"];
|
||||
[window setFrameUsingName: @"MessageWindowFrame"];
|
||||
|
||||
[window setRestorationClass: [self class]];
|
||||
if ([NSApp isOnLionOrBetter])
|
||||
[window setRestorationClass: [self class]];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(resizeColumn)
|
||||
name: @"NSTableViewColumnDidResizeNotification" object: fMessageTable];
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#import "Controller.h"
|
||||
#import "PortChecker.h"
|
||||
#import "BonjourController.h"
|
||||
#import "NSApplicationAdditions.h"
|
||||
#import "NSStringAdditions.h"
|
||||
#import "UKKQueue.h"
|
||||
|
||||
|
@ -160,7 +161,8 @@
|
|||
{
|
||||
fHasLoaded = YES;
|
||||
|
||||
[[self window] setRestorationClass: [self class]];
|
||||
if ([NSApp isOnLionOrBetter])
|
||||
[[self window] setRestorationClass: [self class]];
|
||||
|
||||
NSToolbar * toolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
|
||||
[toolbar setDelegate: self];
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#import "StatsWindowController.h"
|
||||
#import "Controller.h"
|
||||
#import "NSApplicationAdditions.h"
|
||||
#import "NSStringAdditions.h"
|
||||
|
||||
#define UPDATE_SECONDS 1.0
|
||||
|
@ -66,7 +67,8 @@ tr_session * fLib = NULL;
|
|||
[[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSModalPanelRunLoopMode];
|
||||
[[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSEventTrackingRunLoopMode];
|
||||
|
||||
[[self window] setRestorationClass: [self class]];
|
||||
if ([NSApp isOnLionOrBetter])
|
||||
[[self window] setRestorationClass: [self class]];
|
||||
|
||||
[[self window] setTitle: NSLocalizedString(@"Statistics", "Stats window -> title")];
|
||||
|
||||
|
|
Loading…
Reference in a new issue