RegisterNameWindow.xib 23 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
3
    <dependencies>
4
        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14460.31"/>
5
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    </dependencies>
    <objects>
        <customObject id="-2" userLabel="File's Owner" customClass="RegisterNameWC">
            <connections>
                <outlet property="errorContainer" destination="szF-XD-rRG" id="fdo-QS-CE2"/>
                <outlet property="indicatorLookupResult" destination="Osd-Vq-u7C" id="Adn-ta-XTG"/>
                <outlet property="initialContainer" destination="gKX-gX-nko" id="tjc-HW-KBM"/>
                <outlet property="ivLookupResult" destination="kfj-jZ-xal" id="w7y-8W-MWT"/>
                <outlet property="progressContainer" destination="WWd-Hs-Pwi" id="YK7-bp-wp7"/>
                <outlet property="registeredNameField" destination="LVv-bg-Ols" id="2Cc-TI-koh"/>
                <outlet property="registrationProgress" destination="1rt-CR-Wpz" id="djT-M6-eei"/>
                <outlet property="window" destination="JWw-7m-ywL" id="9MN-aN-6lE"/>
            </connections>
        </customObject>
        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
22
        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="JWw-7m-ywL">
23 24
            <windowStyleMask key="styleMask" titled="YES" closable="YES"/>
            <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
25
            <rect key="contentRect" x="131" y="165" width="410" height="213"/>
26
            <rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
27
            <view key="contentView" id="fhx-qk-94n">
28
                <rect key="frame" x="0.0" y="0.0" width="410" height="162"/>
29 30 31
                <autoresizingMask key="autoresizingMask"/>
                <subviews>
                    <customView translatesAutoresizingMaskIntoConstraints="NO" id="szF-XD-rRG">
32
                        <rect key="frame" x="0.0" y="0.0" width="410" height="162"/>
33 34
                        <subviews>
                            <textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="YAP-cJ-hMx">
35
                                <rect key="frame" x="33" y="73" width="344" height="17"/>
36 37 38 39 40 41 42 43 44 45 46
                                <constraints>
                                    <constraint firstAttribute="width" constant="340" id="2Gn-1g-YtT"/>
                                    <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="340" id="lK4-ZA-NTA"/>
                                </constraints>
                                <textFieldCell key="cell" controlSize="mini" sendsActionOnEndEditing="YES" alignment="center" title="An error occured during your username registration" id="Aeh-tK-RjX">
                                    <font key="font" metaFont="system"/>
                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                    <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                                </textFieldCell>
                            </textField>
                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="OLz-JI-6Uy">
47
                                <rect key="frame" x="339" y="13" width="57" height="32"/>
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
                                <buttonCell key="cell" type="push" title="Ok" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="fOn-FV-2x8">
                                    <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                    <font key="font" metaFont="system"/>
                                    <string key="keyEquivalent" base64-UTF8="YES">
DQ
</string>
                                </buttonCell>
                                <connections>
                                    <action selector="cancelPressed:" target="-2" id="tu6-rH-SaR"/>
                                </connections>
                            </button>
                        </subviews>
                        <constraints>
                            <constraint firstAttribute="bottom" secondItem="OLz-JI-6Uy" secondAttribute="bottom" constant="20" id="0NR-IY-c6R"/>
                            <constraint firstItem="YAP-cJ-hMx" firstAttribute="centerX" secondItem="szF-XD-rRG" secondAttribute="centerX" id="67H-Op-7GF"/>
                            <constraint firstItem="YAP-cJ-hMx" firstAttribute="centerY" secondItem="szF-XD-rRG" secondAttribute="centerY" id="J3M-SN-DVB"/>
                            <constraint firstAttribute="trailing" secondItem="OLz-JI-6Uy" secondAttribute="trailing" constant="20" id="yR1-UC-5B7"/>
                        </constraints>
                    </customView>
                    <view translatesAutoresizingMaskIntoConstraints="NO" id="gKX-gX-nko">
68
                        <rect key="frame" x="0.0" y="0.0" width="410" height="162"/>
69 70
                        <subviews>
                            <textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3cW-Kr-1oI">
71 72
                                <rect key="frame" x="33" y="125" width="359" height="17"/>
                                <textFieldCell key="cell" controlSize="mini" sendsActionOnEndEditing="YES" alignment="left" title="Register a public username " id="tje-EZ-ZPI">
73
                                    <font key="font" metaFont="systemSemibold" size="13"/>
74 75 76 77 78
                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                    <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                                </textFieldCell>
                            </textField>
                            <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="oFy-jN-crC">
79
                                <rect key="frame" x="33" y="103" width="359" height="17"/>
80
                                <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="Other users can use it instead of your ID" id="9gi-0u-67t">
81
                                    <font key="font" metaFont="system"/>
82 83 84 85 86
                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                    <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                                </textFieldCell>
                            </textField>
                            <textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="LVv-bg-Ols">
87
                                <rect key="frame" x="136" y="66" width="200" height="22"/>
88 89 90
                                <constraints>
                                    <constraint firstAttribute="width" constant="200" id="tbX-cT-w6C"/>
                                </constraints>
91
                                <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" placeholderString="Enter username..." bezelStyle="round" id="bdC-Uc-Qhs">
92
                                    <font key="font" metaFont="system"/>
93
                                    <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
94 95 96 97 98 99
                                    <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                </textFieldCell>
                                <connections>
                                    <outlet property="delegate" destination="-2" id="WvF-ix-1Nv"/>
                                </connections>
                            </textField>
100
                            <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="pyd-lM-kiF">
101
                                <rect key="frame" x="65" y="69" width="66" height="17"/>
102 103 104 105 106 107
                                <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Username" id="lo5-ei-wHM">
                                    <font key="font" metaFont="system"/>
                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                    <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                                </textFieldCell>
                            </textField>
108
                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="GhT-2W-DrB">
109
                                <rect key="frame" x="224" y="13" width="82" height="32"/>
110 111 112 113 114 115 116 117 118 119 120 121
                                <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="eoS-s7-b3w">
                                    <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                    <font key="font" metaFont="system"/>
                                    <string key="keyEquivalent" base64-UTF8="YES">
Gw
</string>
                                </buttonCell>
                                <connections>
                                    <action selector="cancelPressed:" target="-2" id="GnK-nq-Ia1"/>
                                </connections>
                            </button>
                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="kxj-la-grj">
122
                                <rect key="frame" x="306" y="13" width="90" height="32"/>
123 124 125 126 127 128 129 130 131 132 133 134 135
                                <buttonCell key="cell" type="push" title="Register" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="lT3-Bh-MnL">
                                    <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                    <font key="font" metaFont="system"/>
                                    <string key="keyEquivalent" base64-UTF8="YES">
DQ
</string>
                                </buttonCell>
                                <connections>
                                    <action selector="registerUsername:" target="-2" id="zAU-Ve-eYp"/>
                                    <binding destination="-2" name="enabled" keyPath="self.isUserNameAvailable" id="DJ0-jU-oIl"/>
                                </connections>
                            </button>
                            <customView translatesAutoresizingMaskIntoConstraints="NO" id="JGA-h8-Nhd">
136
                                <rect key="frame" x="343" y="67" width="20" height="20"/>
137 138
                                <subviews>
                                    <progressIndicator wantsLayer="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="Osd-Vq-u7C">
139 140 141 142 143
                                        <rect key="frame" x="0.0" y="0.0" width="20" height="20"/>
                                        <constraints>
                                            <constraint firstAttribute="height" constant="20" id="HAJ-0a-gCH"/>
                                            <constraint firstAttribute="width" constant="20" id="MBk-TM-Um8"/>
                                        </constraints>
144 145
                                    </progressIndicator>
                                    <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="kfj-jZ-xal">
146
                                        <rect key="frame" x="0.0" y="0.0" width="20" height="20"/>
147 148 149 150 151 152 153 154
                                        <constraints>
                                            <constraint firstAttribute="height" constant="20" id="Ukr-7U-1Lh"/>
                                            <constraint firstAttribute="width" constant="20" id="XOS-nb-g7U"/>
                                        </constraints>
                                        <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="ic_action_accept" id="70V-q1-CFT"/>
                                    </imageView>
                                </subviews>
                                <constraints>
155 156 157 158 159 160
                                    <constraint firstAttribute="height" constant="20" id="5Yt-ni-yBx"/>
                                    <constraint firstAttribute="width" constant="20" id="IVh-Ql-XWq"/>
                                    <constraint firstItem="Osd-Vq-u7C" firstAttribute="centerY" secondItem="JGA-h8-Nhd" secondAttribute="centerY" id="OUj-Up-Ye6"/>
                                    <constraint firstItem="kfj-jZ-xal" firstAttribute="centerY" secondItem="JGA-h8-Nhd" secondAttribute="centerY" id="Stf-O1-TjW"/>
                                    <constraint firstItem="kfj-jZ-xal" firstAttribute="centerX" secondItem="JGA-h8-Nhd" secondAttribute="centerX" id="grL-3y-IBX"/>
                                    <constraint firstItem="Osd-Vq-u7C" firstAttribute="centerX" secondItem="JGA-h8-Nhd" secondAttribute="centerX" id="jKJ-36-Gld"/>
161 162 163 164
                                </constraints>
                            </customView>
                        </subviews>
                        <constraints>
165
                            <constraint firstAttribute="trailing" secondItem="3cW-Kr-1oI" secondAttribute="trailing" constant="20" id="29P-ZA-iM6"/>
166
                            <constraint firstAttribute="bottom" secondItem="GhT-2W-DrB" secondAttribute="bottom" constant="20" id="Fkg-bx-DFy"/>
167
                            <constraint firstItem="LVv-bg-Ols" firstAttribute="top" secondItem="oFy-jN-crC" secondAttribute="bottom" constant="15" id="I29-cu-eYL"/>
168
                            <constraint firstItem="3cW-Kr-1oI" firstAttribute="top" secondItem="gKX-gX-nko" secondAttribute="top" constant="20" id="Idb-Wu-QEH"/>
169 170 171
                            <constraint firstItem="LVv-bg-Ols" firstAttribute="leading" secondItem="pyd-lM-kiF" secondAttribute="trailing" constant="7" id="MKN-id-BgO"/>
                            <constraint firstItem="oFy-jN-crC" firstAttribute="top" secondItem="3cW-Kr-1oI" secondAttribute="bottom" constant="5" id="McA-nZ-5z9"/>
                            <constraint firstItem="JGA-h8-Nhd" firstAttribute="leading" secondItem="LVv-bg-Ols" secondAttribute="trailing" constant="7" id="SIK-Kb-6ET"/>
172
                            <constraint firstAttribute="trailing" secondItem="kxj-la-grj" secondAttribute="trailing" constant="20" id="WS6-w2-SOa"/>
173
                            <constraint firstItem="oFy-jN-crC" firstAttribute="leading" secondItem="gKX-gX-nko" secondAttribute="leading" constant="35" id="X0d-vt-KnX"/>
174
                            <constraint firstItem="kxj-la-grj" firstAttribute="leading" secondItem="GhT-2W-DrB" secondAttribute="trailing" constant="12" id="bwP-n4-ByA"/>
175 176
                            <constraint firstAttribute="trailing" secondItem="oFy-jN-crC" secondAttribute="trailing" constant="20" id="fBK-4g-wxS"/>
                            <constraint firstItem="pyd-lM-kiF" firstAttribute="centerY" secondItem="LVv-bg-Ols" secondAttribute="centerY" id="gBZ-EX-YEN"/>
177
                            <constraint firstItem="JGA-h8-Nhd" firstAttribute="centerY" secondItem="LVv-bg-Ols" secondAttribute="centerY" id="k40-hp-KCp"/>
178
                            <constraint firstItem="pyd-lM-kiF" firstAttribute="leading" secondItem="oFy-jN-crC" secondAttribute="leading" constant="32" id="tVF-hj-BRq"/>
179
                            <constraint firstItem="kxj-la-grj" firstAttribute="top" secondItem="LVv-bg-Ols" secondAttribute="bottom" constant="25" id="uO8-vt-bRv"/>
180
                            <constraint firstAttribute="bottom" secondItem="kxj-la-grj" secondAttribute="bottom" constant="20" id="w0D-Vo-Z48"/>
181
                            <constraint firstItem="3cW-Kr-1oI" firstAttribute="leading" secondItem="gKX-gX-nko" secondAttribute="leading" constant="35" id="y5J-9x-SsV"/>
182 183 184
                        </constraints>
                    </view>
                    <customView translatesAutoresizingMaskIntoConstraints="NO" id="WWd-Hs-Pwi">
185
                        <rect key="frame" x="0.0" y="0.0" width="410" height="162"/>
186 187
                        <subviews>
                            <textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="1hK-Hw-cJh">
188
                                <rect key="frame" x="151" y="66" width="109" height="17"/>
189 190 191 192 193 194 195
                                <textFieldCell key="cell" controlSize="mini" sendsActionOnEndEditing="YES" alignment="center" title="Just a moment..." id="YIN-YL-JBs">
                                    <font key="font" metaFont="system"/>
                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                    <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                                </textFieldCell>
                            </textField>
                            <progressIndicator wantsLayer="YES" maxValue="100" indeterminate="YES" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="1rt-CR-Wpz">
196
                                <rect key="frame" x="157" y="91" width="96" height="32"/>
197 198 199 200 201
                                <constraints>
                                    <constraint firstAttribute="width" constant="96" id="g01-Ci-luV"/>
                                </constraints>
                            </progressIndicator>
                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="nQA-Bl-kuO">
202
                                <rect key="frame" x="314" y="13" width="82" height="32"/>
203 204 205 206 207 208 209 210 211 212 213 214 215 216
                                <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="cbA-c2-LlV">
                                    <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                    <font key="font" metaFont="system"/>
                                    <string key="keyEquivalent" base64-UTF8="YES">
Gw
</string>
                                </buttonCell>
                                <connections>
                                    <action selector="cancelPressed:" target="-2" id="8gY-z8-LZN"/>
                                </connections>
                            </button>
                        </subviews>
                        <constraints>
                            <constraint firstAttribute="bottom" secondItem="nQA-Bl-kuO" secondAttribute="bottom" constant="20" id="FCD-G1-gcU"/>
217
                            <constraint firstAttribute="height" constant="162" id="c6Q-hv-Gu7"/>
218
                            <constraint firstAttribute="trailing" secondItem="nQA-Bl-kuO" secondAttribute="trailing" constant="20" id="fNZ-SD-vV0"/>
219
                            <constraint firstItem="1hK-Hw-cJh" firstAttribute="top" secondItem="1rt-CR-Wpz" secondAttribute="bottom" constant="8" id="kRx-lu-H03"/>
220
                            <constraint firstItem="1rt-CR-Wpz" firstAttribute="centerY" secondItem="WWd-Hs-Pwi" secondAttribute="centerY" constant="-26" id="tFP-f6-B38"/>
221
                            <constraint firstItem="1hK-Hw-cJh" firstAttribute="centerX" secondItem="1rt-CR-Wpz" secondAttribute="centerX" id="upr-bY-gXb"/>
222
                            <constraint firstItem="1rt-CR-Wpz" firstAttribute="centerX" secondItem="WWd-Hs-Pwi" secondAttribute="centerX" id="vuy-f9-mI8"/>
223 224 225 226
                        </constraints>
                    </customView>
                </subviews>
                <constraints>
227
                    <constraint firstItem="WWd-Hs-Pwi" firstAttribute="leading" secondItem="fhx-qk-94n" secondAttribute="leading" id="2RE-kQ-l7i"/>
228 229 230
                    <constraint firstItem="gKX-gX-nko" firstAttribute="top" secondItem="fhx-qk-94n" secondAttribute="top" id="2lY-3k-wn5"/>
                    <constraint firstAttribute="bottom" secondItem="gKX-gX-nko" secondAttribute="bottom" id="8Oa-Uz-6LG"/>
                    <constraint firstAttribute="bottom" secondItem="szF-XD-rRG" secondAttribute="bottom" id="F9k-Zf-lBc"/>
231
                    <constraint firstAttribute="trailing" secondItem="WWd-Hs-Pwi" secondAttribute="trailing" id="Pr3-B2-QAB"/>
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
                    <constraint firstItem="WWd-Hs-Pwi" firstAttribute="centerY" secondItem="fhx-qk-94n" secondAttribute="centerY" id="dS5-As-4zt"/>
                    <constraint firstItem="szF-XD-rRG" firstAttribute="leading" secondItem="fhx-qk-94n" secondAttribute="leading" id="feD-HN-B22"/>
                    <constraint firstItem="gKX-gX-nko" firstAttribute="leading" secondItem="fhx-qk-94n" secondAttribute="leading" id="gAf-Wj-ShA"/>
                    <constraint firstAttribute="trailing" secondItem="gKX-gX-nko" secondAttribute="trailing" id="iHs-YI-w1M"/>
                    <constraint firstItem="szF-XD-rRG" firstAttribute="top" secondItem="fhx-qk-94n" secondAttribute="top" id="iSn-Iu-o8u"/>
                    <constraint firstAttribute="trailing" secondItem="szF-XD-rRG" secondAttribute="trailing" id="tAM-X8-ofp"/>
                    <constraint firstItem="WWd-Hs-Pwi" firstAttribute="centerX" secondItem="fhx-qk-94n" secondAttribute="centerX" id="zrg-bI-umR"/>
                </constraints>
            </view>
            <connections>
                <outlet property="delegate" destination="-2" id="pFe-Nr-AEd"/>
                <outlet property="initialFirstResponder" destination="gKX-gX-nko" id="Tak-CI-JfO"/>
            </connections>
            <point key="canvasLocation" x="-446" y="439.5"/>
        </window>
    </objects>
    <resources>
        <image name="ic_action_accept" width="72" height="72"/>
    </resources>
</document>