2 // HMUITestWindowController.m
5 // Created by Hori,Masaki on 2015/02/28.
6 // Copyright (c) 2015年 Hori,Masaki. All rights reserved.
9 #import "HMUITestWindowController.h"
11 @interface HMUITestWindowController ()
12 @property (strong) NSViewController *testViewController;
15 @implementation HMUITestWindowController
19 self = [super initWithWindowNibName:NSStringFromClass([self class])];
23 - (Class)testViewControllerClass
25 return NSClassFromString(@"HMCombileViewController");
28 - (void)windowDidLoad {
29 [super windowDidLoad];
31 self.testViewController = [self.testViewControllerClass new];
32 [self.testViewController.view setFrame:[self.testViewPlaceholder frame]];
33 [self.testViewController.view setAutoresizingMask:[self.testViewPlaceholder autoresizingMask]];
34 [[self.testViewPlaceholder superview] replaceSubview:self.testViewPlaceholder with:self.testViewController.view];