#import "HMShipDetailViewController.h"
#import "HMFleet.h"
+#import "HMFleetManager.h"
#import "HMAppDelegate.h"
- (void)setFleetNumber:(NSInteger)fleetNumber
{
- self.fleet = [HMFleet fleetWithNumber:@(fleetNumber)];
+ HMAppDelegate *appDelegate = [[NSApplication sharedApplication] delegate];
+ HMFleetManager *fm = appDelegate.fleetManager;
+ self.fleet = fm.fleets[fleetNumber - 1];
_fleetNumber = fleetNumber;
}
- (NSInteger)fleetNumber
- (void)windowDidLoad {
[super windowDidLoad];
-
- self.testViewController = [self.testViewControllerClass new];
- NSRect frame = self.testViewController.view.frame;
- self.window.contentSize = frame.size;
-// [self.testViewController.view setFrame:[self.testViewPlaceholder frame]];
- [self.testViewController.view setAutoresizingMask:[self.testViewPlaceholder autoresizingMask]];
- [[self.testViewPlaceholder superview] replaceSubview:self.testViewPlaceholder with:self.testViewController.view];
+//
+// self.testViewController = [self.testViewControllerClass new];
+// NSRect frame = self.testViewController.view.frame;
+// self.window.contentSize = frame.size;
+//// [self.testViewController.view setFrame:[self.testViewPlaceholder frame]];
+// [self.testViewController.view setAutoresizingMask:[self.testViewPlaceholder autoresizingMask]];
+// [[self.testViewPlaceholder superview] replaceSubview:self.testViewPlaceholder with:self.testViewController.view];
}
@end
</textFieldCell>
<connections>
<binding destination="-3" name="font" keyPath="delegate.monospaceSystemFont11" id="vqv-f1-c1R"/>
- <binding destination="-2" name="hidden" keyPath="repairable" id="v9O-cV-MtY">
+ <binding destination="gCv-EU-Vnz" name="hidden" keyPath="selection.repairable" id="Hkp-U2-RpR">
<dictionary key="options">
<string key="NSValueTransformerName">NSNegateBoolean</string>
</dictionary>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<connections>
- <binding destination="-2" name="hidden" keyPath="repairable" id="0Y7-u7-l5n">
+ <binding destination="gCv-EU-Vnz" name="hidden" keyPath="selection.repairable" id="3D5-ho-PNe">
<dictionary key="options">
<string key="NSValueTransformerName">NSNegateBoolean</string>
</dictionary>
</textFieldCell>
<connections>
<binding destination="-3" name="font" keyPath="delegate.monospaceSystemFont13" id="PF0-ou-K6v"/>
- <binding destination="MYB-8m-P41" name="value" keyPath="selection.totalSakuteki" id="JRu-FL-yUV"/>
+ <binding destination="MYB-8m-P41" name="value" keyPath="selection.totalSakuteki" id="4Cv-OM-5Cq"/>
</connections>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="ee5-Xk-4iW">
</textFieldCell>
<connections>
<binding destination="-3" name="font" keyPath="delegate.monospaceSystemFont13" id="r57-yZ-zBo"/>
- <binding destination="MYB-8m-P41" name="displayPatternValue1" keyPath="selection.totalSeiku" id="7Sq-iR-bBg">
+ <binding destination="MYB-8m-P41" name="displayPatternValue1" keyPath="selection.totalSeiku" id="LuX-Zm-HUB">
<dictionary key="options">
<string key="NSDisplayPattern">%{value1}@ (%{value2}@)</string>
</dictionary>
</binding>
- <binding destination="MYB-8m-P41" name="displayPatternValue2" keyPath="selection.totalCalclatedSeiku" previousBinding="7Sq-iR-bBg" id="70Q-az-J1k">
+ <binding destination="MYB-8m-P41" name="displayPatternValue2" keyPath="selection.totalCalclatedSeiku" previousBinding="LuX-Zm-HUB" id="3mY-Ib-hoE">
<dictionary key="options">
<string key="NSDisplayPattern">%{value1}@ (%{value2}@)</string>
</dictionary>
</textFieldCell>
<connections>
<binding destination="-3" name="font" keyPath="delegate.monospaceSystemFont11" id="D3c-11-4qp"/>
+ <binding destination="MYB-8m-P41" name="value" keyPath="selection.repairTime" id="L7t-yF-hnS"/>
<binding destination="MYB-8m-P41" name="hidden" keyPath="selection.repairable" id="6p5-99-GUi">
<dictionary key="options">
<string key="NSValueTransformerName">NSNegateBoolean</string>
</dictionary>
</binding>
- <binding destination="MYB-8m-P41" name="value" keyPath="selection.repairTime" id="L7t-yF-hnS"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" id="1Fs-NZ-L8n">