OSDN Git Service

UIを調整
[kcd/KCD.git] / KCD / HMBrowserContentAdjuster.m
1 //
2 //  HMBrowserContentAdjuster.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2015/06/02.
6 //  Copyright (c) 2015年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMBrowserContentAdjuster.h"
10
11 #import "HMExternalBrowserWindowController.h"
12
13
14 @interface HMBrowserContentAdjuster ()
15
16 @end
17
18 @implementation HMBrowserContentAdjuster
19
20 - (instancetype)init
21 {
22         self = [super initWithWindowNibName:NSStringFromClass([self class])];
23         return self;
24 }
25
26 - (HMExternalBrowserWindowController *)mainExternalWindowController
27 {
28         NSWindow *mainWindow = [[NSApplication sharedApplication] mainWindow];
29         id controller = mainWindow.windowController;
30         if([controller isKindOfClass:[HMExternalBrowserWindowController class]]) {
31                 return controller;
32         }
33         return nil;
34 }
35 @end