OSDN Git Service

起動直後にスクリーンショットが取れない問題を修正
authormasakih <masakih@users.sourceforge.jp>
Tue, 25 Oct 2016 12:16:33 +0000 (21:16 +0900)
committermasakih <masakih@users.sourceforge.jp>
Tue, 25 Oct 2016 12:16:33 +0000 (21:16 +0900)
KCD/Base.lproj/HMScreenshotListWindowController.xib
KCD/HMScreenshotListWindowController.m

index 311c02c..191a91b 100644 (file)
         </customObject>
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="スクリーンショット" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" frameAutosaveName="HMScreenshotListWindowController" animationBehavior="default" id="QvC-M9-y7g">
+        <window title="スクリーンショット" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="HMScreenshotListWindowController" animationBehavior="default" id="QvC-M9-y7g">
             <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="196" y="240" width="800" height="500"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1440" height="900"/>
             <view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
                 <rect key="frame" x="0.0" y="0.0" width="800" height="500"/>
                 <autoresizingMask key="autoresizingMask"/>
index ca6f6fd..8f9fdaa 100644 (file)
@@ -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