Skip to content

Instantly share code, notes, and snippets.

@MSch
Created December 28, 2011 14:14
Show Gist options
  • Save MSch/1528068 to your computer and use it in GitHub Desktop.
Save MSch/1528068 to your computer and use it in GitHub Desktop.
<scenes>
<scene sceneID="0w1-E2-N09">
<objects>
<placeholder placeholderIdentifier="IBFirstResponder" id="qgN-yu-YsU" userLabel="First Responder" sceneMemberID="firstResponder"/>
<tableViewController id="baW-xq-PM6" customClass="ASViewController" sceneMemberID="viewController">
<tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="qpc-DA-sEg">
<rect key="frame" x="0.0" y="20" width="320" height="460"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Default" id="8jf-OX-TSW">
<rect key="frame" x="0.0" y="22" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="baW-xq-PM6" id="Ar5-WB-tbI"/>
<outlet property="delegate" destination="baW-xq-PM6" id="bOa-PA-8EQ"/>
</connections>
</tableView>
</tableViewController>
</objects>
<point key="canvasLocation" x="281" y="157"/>
</scene>
</scenes>
@MSch
Copy link
Author

MSch commented Dec 28, 2011

Compare this to typical .xibs that are a general serialization (NSKeyedArchiver?) of an (arbitrary) object graph.

        <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
            <object class="IBProxyObject" id="372490531">
                <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
                <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
            </object>
            <object class="IBProxyObject" id="975951072">
                <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
                <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
            </object>
            <object class="IBUIView" id="191373211">
                <reference key="NSNextResponder"/>
                <int key="NSvFlags">274</int>
                <array class="NSMutableArray" key="NSSubviews">
                    <object class="IBUIImageView" id="716944859">
                        <reference key="NSNextResponder" ref="191373211"/>
                        <int key="NSvFlags">292</int>
                        <string key="NSFrameSize">{320, 460}</string>
                        <reference key="NSSuperview" ref="191373211"/>
                        <reference key="NSWindow"/>
                        <reference key="NSNextKeyView" ref="595219208"/>
                        <string key="NSReuseIdentifierKey">_NS:567</string>
                        <bool key="IBUIUserInteractionEnabled">NO</bool>
                        <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
                        <object class="NSCustomResource" key="IBUIImage">
                            <string key="NSClassName">NSImage</string>
                            <string key="NSResourceName">screen_wifi.png</string>
                        </object>
                    </object>
                    <object class="IBUILabel" id="595219208">
                        <reference key="NSNextResponder" ref="191373211"/>
                        <int key="NSvFlags">292</int>
                        <string key="NSFrame">{{0, 231}, {320, 56}}</string>
                        <reference key="NSSuperview" ref="191373211"/>
                        <reference key="NSWindow"/>
                        <reference key="NSNextKeyView"/>
                        <string key="NSReuseIdentifierKey">_NS:328</string>
                        <object class="NSColor" key="IBUIBackgroundColor">
                            <int key="NSColorSpace">3</int>
                            <bytes key="NSWhite">MCAwAA</bytes>
                        </object>
                        <bool key="IBUIOpaque">NO</bool>
                        <bool key="IBUIClipsSubviews">YES</bool>
                        <int key="IBUIContentMode">7</int>
                        <bool key="IBUIUserInteractionEnabled">NO</bool>
                        <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
                        <string type="base64-UTF8" key="IBUIText">UGxlYXNlIGFjdGl2YXRlIFdpLUZpIAp0byBjb25uZWN0IGZyb20geW91ciBNYWM</string>
                        <object class="NSColor" key="IBUITextColor">
                            <int key="NSColorSpace">3</int>
                            <bytes key="NSWhite">MQA</bytes>
                        </object>
                        <nil key="IBUIHighlightedColor"/>
                        <object class="NSColor" key="IBUIShadowColor">
                            <int key="NSColorSpace">3</int>
                            <bytes key="NSWhite">MCAwLjUAA</bytes>
                        </object>
                        <int key="IBUIBaselineAdjustment">1</int>
                        <bool key="IBUIAdjustsFontSizeToFit">NO</bool>
                        <float key="IBUIMinimumFontSize">10</float>
                        <int key="IBUINumberOfLines">0</int>
                        <int key="IBUITextAlignment">1</int>
                        <object class="IBUIFontDescription" key="IBUIFontDescription">
                            <int key="type">2</int>
                            <double key="pointSize">18</double>
                        </object>
                        <object class="NSFont" key="IBUIFont">
                            <string key="NSName">Helvetica-Bold</string>
                            <double key="NSSize">18</double>
                            <int key="NSfFlags">16</int>
                        </object>
                    </object>
                </array>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment