Changeset 13352


Ignore:
Timestamp:
Jun 18, 2012, 1:33:27 AM (9 years ago)
Author:
livings124
Message:

Don't call setRestorationClass: on 10.6.

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/CreatorWindowController.m

    r13323 r13352  
    2525#import "CreatorWindowController.h"
    2626#import "Controller.h"
     27#import "NSApplicationAdditions.h"
    2728#import "NSStringAdditions.h"
    2829
     
    140141- (void) awakeFromNib
    141142{
    142     [[self window] setRestorationClass: [self class]];
     143    if ([NSApp isOnLionOrBetter])
     144        [[self window] setRestorationClass: [self class]];
    143145   
    144146    NSString * name = [fPath lastPathComponent];
  • trunk/macosx/MessageWindowController.m

    r13340 r13352  
    5959    [window setFrameUsingName: @"MessageWindowFrame"];
    6060   
    61     [window setRestorationClass: [self class]];
     61    if ([NSApp isOnLionOrBetter])
     62        [window setRestorationClass: [self class]];
    6263   
    6364    [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(resizeColumn)
  • trunk/macosx/PrefsController.m

    r13340 r13352  
    2929#import "PortChecker.h"
    3030#import "BonjourController.h"
     31#import "NSApplicationAdditions.h"
    3132#import "NSStringAdditions.h"
    3233#import "UKKQueue.h"
     
    161162    fHasLoaded = YES;
    162163   
    163     [[self window] setRestorationClass: [self class]];
     164    if ([NSApp isOnLionOrBetter])
     165        [[self window] setRestorationClass: [self class]];
    164166   
    165167    NSToolbar * toolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
  • trunk/macosx/StatsWindowController.m

    r13318 r13352  
    2525#import "StatsWindowController.h"
    2626#import "Controller.h"
     27#import "NSApplicationAdditions.h"
    2728#import "NSStringAdditions.h"
    2829
     
    6768    [[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSEventTrackingRunLoopMode];
    6869   
    69     [[self window] setRestorationClass: [self class]];
     70    if ([NSApp isOnLionOrBetter])
     71        [[self window] setRestorationClass: [self class]];
    7072   
    7173    [[self window] setTitle: NSLocalizedString(@"Statistics", "Stats window -> title")];
Note: See TracChangeset for help on using the changeset viewer.