From b1d77519ec07bd0fe308ac8380dc7bedac2932b3 Mon Sep 17 00:00:00 2001 From: masakih Date: Tue, 25 Oct 2016 21:16:33 +0900 Subject: [PATCH] =?utf8?q?=E8=B5=B7=E5=8B=95=E7=9B=B4=E5=BE=8C=E3=81=AB?= =?utf8?q?=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=BC=E3=83=B3=E3=82=B7=E3=83=A7?= =?utf8?q?=E3=83=83=E3=83=88=E3=81=8C=E5=8F=96=E3=82=8C=E3=81=AA=E3=81=84?= =?utf8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- KCD/Base.lproj/HMScreenshotListWindowController.xib | 4 ++-- KCD/HMScreenshotListWindowController.m | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/KCD/Base.lproj/HMScreenshotListWindowController.xib b/KCD/Base.lproj/HMScreenshotListWindowController.xib index 311c02c7..191a91be 100644 --- a/KCD/Base.lproj/HMScreenshotListWindowController.xib +++ b/KCD/Base.lproj/HMScreenshotListWindowController.xib @@ -16,11 +16,11 @@ - + - + diff --git a/KCD/HMScreenshotListWindowController.m b/KCD/HMScreenshotListWindowController.m index ca6f6fd2..8f9fdaaa 100644 --- a/KCD/HMScreenshotListWindowController.m +++ b/KCD/HMScreenshotListWindowController.m @@ -41,7 +41,9 @@ typedef BOOL (^HMFindViewController)(NSViewController *viewController); + (instancetype)new { - return [[self alloc] initWithWindowNibName:NSStringFromClass([self class])]; + HMScreenshotListWindowController *result = [[self alloc] initWithWindowNibName:NSStringFromClass([self class])]; + [result window]; + return result; } - (void)replaceView:(NSView *)placeholder withViewController:(NSViewController *)viewController -- 2.11.0