Skip to content
Browse files

Taking TableView out of demo until we get it working.

  • Loading branch information...
1 parent 1068e28 commit 09dfa43460ec432a9199e4e7b05fec50d8ca4e97 Rob Linton committed
Showing with 25 additions and 558 deletions.
  1. +5 −553 apps/demo_app/resources/MainPage.xib
  2. +20 −5 resources/SCXIB.xslt
View
558 apps/demo_app/resources/MainPage.xib
@@ -3,15 +3,15 @@
<data>
<int key="IBDocument.SystemTarget">1060</int>
<string key="IBDocument.SystemVersion">10F569</string>
- <string key="IBDocument.InterfaceBuilderVersion">762</string>
+ <string key="IBDocument.InterfaceBuilderVersion">804</string>
<string key="IBDocument.AppKitVersion">1038.29</string>
<string key="IBDocument.HIToolboxVersion">461.00</string>
<dictionary class="NSMutableDictionary" key="IBDocument.PluginVersions">
- <string key="com.apple.InterfaceBuilder.CocoaPlugin">762</string>
+ <string key="com.apple.InterfaceBuilder.CocoaPlugin">804</string>
<string key="com.apple.imagekit.ibplugin">1.1</string>
</dictionary>
<array class="NSMutableArray" key="IBDocument.EditedObjectIDs">
- <integer value="5"/>
+ <integer value="16"/>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.imagekit.ibplugin</string>
@@ -680,204 +680,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<reference key="NSColor" ref="170229746"/>
<reference key="NSTabView" ref="598199649"/>
</object>
- <object class="NSTabViewItem" id="563769272">
- <string key="NSIdentifier">2</string>
- <object class="NSView" key="NSView" id="754680531">
- <nil key="NSNextResponder"/>
- <int key="NSvFlags">274</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSScrollView" id="1058737857">
- <reference key="NSNextResponder" ref="754680531"/>
- <int key="NSvFlags">274</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSClipView" id="486641302">
- <reference key="NSNextResponder" ref="1058737857"/>
- <int key="NSvFlags">2304</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSTableView" id="326749328">
- <reference key="NSNextResponder" ref="486641302"/>
- <int key="NSvFlags">274</int>
- <string key="NSFrameSize">{653, 389}</string>
- <reference key="NSSuperview" ref="486641302"/>
- <bool key="NSEnabled">YES</bool>
- <object class="NSTableHeaderView" key="NSHeaderView" id="585422699">
- <reference key="NSNextResponder" ref="114719178"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrameSize">{653, 17}</string>
- <reference key="NSSuperview" ref="114719178"/>
- <reference key="NSTableView" ref="326749328"/>
- </object>
- <object class="_NSCornerView" key="NSCornerView" id="732160208">
- <reference key="NSNextResponder" ref="1058737857"/>
- <int key="NSvFlags">-2147483392</int>
- <string key="NSFrame">{{639, 0}, {16, 17}}</string>
- <reference key="NSSuperview" ref="1058737857"/>
- </object>
- <array class="NSMutableArray" key="NSTableColumns">
- <object class="NSTableColumn" id="296709564">
- <string key="NSIdentifier">guid</string>
- <double key="NSWidth">101</double>
- <double key="NSMinWidth">40</double>
- <double key="NSMaxWidth">1000</double>
- <object class="NSTableHeaderCell" key="NSHeaderCell">
- <int key="NSCellFlags">75628096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">ID</string>
- <reference key="NSSupport" ref="26"/>
- <object class="NSColor" key="NSBackgroundColor" id="157938732">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes>
- </object>
- <reference key="NSTextColor" ref="959999619"/>
- </object>
- <object class="NSTextFieldCell" key="NSDataCell" id="779467799">
- <int key="NSCellFlags">337772096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">Text Cell</string>
- <reference key="NSSupport" ref="15418343"/>
- <reference key="NSControlView" ref="326749328"/>
- <reference key="NSBackgroundColor" ref="982893534"/>
- <reference key="NSTextColor" ref="934876882"/>
- </object>
- <int key="NSResizingMask">3</int>
- <bool key="NSIsResizeable">YES</bool>
- <bool key="NSIsEditable">YES</bool>
- <reference key="NSTableView" ref="326749328"/>
- </object>
- <object class="NSTableColumn" id="529714959">
- <string key="NSIdentifier">firstName</string>
- <double key="NSWidth">195</double>
- <double key="NSMinWidth">40</double>
- <double key="NSMaxWidth">1000</double>
- <object class="NSTableHeaderCell" key="NSHeaderCell">
- <int key="NSCellFlags">75628096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">First Name</string>
- <reference key="NSSupport" ref="26"/>
- <reference key="NSBackgroundColor" ref="157938732"/>
- <reference key="NSTextColor" ref="959999619"/>
- </object>
- <object class="NSTextFieldCell" key="NSDataCell" id="566237804">
- <int key="NSCellFlags">337772096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">Text Cell</string>
- <reference key="NSSupport" ref="15418343"/>
- <reference key="NSControlView" ref="326749328"/>
- <reference key="NSBackgroundColor" ref="982893534"/>
- <reference key="NSTextColor" ref="934876882"/>
- </object>
- <int key="NSResizingMask">3</int>
- <bool key="NSIsResizeable">YES</bool>
- <bool key="NSIsEditable">YES</bool>
- <reference key="NSTableView" ref="326749328"/>
- </object>
- <object class="NSTableColumn" id="714119601">
- <string key="NSIdentifier">lastname</string>
- <double key="NSWidth">346</double>
- <double key="NSMinWidth">10</double>
- <double key="NSMaxWidth">3.4028234663852886e+38</double>
- <object class="NSTableHeaderCell" key="NSHeaderCell">
- <int key="NSCellFlags">75628096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">Last Name</string>
- <reference key="NSSupport" ref="26"/>
- <object class="NSColor" key="NSBackgroundColor">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">headerColor</string>
- <reference key="NSColor" ref="564547993"/>
- </object>
- <reference key="NSTextColor" ref="959999619"/>
- </object>
- <object class="NSTextFieldCell" key="NSDataCell" id="728580227">
- <int key="NSCellFlags">337772096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">Text Cell</string>
- <reference key="NSSupport" ref="15418343"/>
- <reference key="NSControlView" ref="326749328"/>
- <reference key="NSBackgroundColor" ref="982893534"/>
- <reference key="NSTextColor" ref="934876882"/>
- </object>
- <int key="NSResizingMask">3</int>
- <bool key="NSIsResizeable">YES</bool>
- <bool key="NSIsEditable">YES</bool>
- <reference key="NSTableView" ref="326749328"/>
- </object>
- </array>
- <double key="NSIntercellSpacingWidth">3</double>
- <double key="NSIntercellSpacingHeight">2</double>
- <reference key="NSBackgroundColor" ref="564547993"/>
- <reference key="NSGridColor" ref="279940"/>
- <double key="NSRowHeight">17</double>
- <int key="NSTvFlags">-702545920</int>
- <reference key="NSDelegate"/>
- <reference key="NSDataSource"/>
- <int key="NSColumnAutoresizingStyle">4</int>
- <int key="NSDraggingSourceMaskForLocal">15</int>
- <int key="NSDraggingSourceMaskForNonLocal">0</int>
- <bool key="NSAllowsTypeSelect">YES</bool>
- <int key="NSTableViewDraggingDestinationStyle">0</int>
- </object>
- </array>
- <string key="NSFrame">{{1, 17}, {653, 389}}</string>
- <reference key="NSSuperview" ref="1058737857"/>
- <reference key="NSNextKeyView" ref="326749328"/>
- <reference key="NSDocView" ref="326749328"/>
- <reference key="NSBGColor" ref="982893534"/>
- <int key="NScvFlags">4</int>
- </object>
- <object class="NSScroller" id="482759234">
- <reference key="NSNextResponder" ref="1058737857"/>
- <int key="NSvFlags">-2147483392</int>
- <string key="NSFrame">{{639, 17}, {15, 435}}</string>
- <reference key="NSSuperview" ref="1058737857"/>
- <reference key="NSTarget" ref="1058737857"/>
- <string key="NSAction">_doScroller:</string>
- <double key="NSPercent">0.96666666666666667</double>
- </object>
- <object class="NSScroller" id="36525843">
- <reference key="NSNextResponder" ref="1058737857"/>
- <int key="NSvFlags">-2147483392</int>
- <string key="NSFrame">{{1, 452}, {653, 15}}</string>
- <reference key="NSSuperview" ref="1058737857"/>
- <int key="NSsFlags">1</int>
- <reference key="NSTarget" ref="1058737857"/>
- <string key="NSAction">_doScroller:</string>
- <double key="NSPercent">0.99542682926829273</double>
- </object>
- <object class="NSClipView" id="114719178">
- <reference key="NSNextResponder" ref="1058737857"/>
- <int key="NSvFlags">2304</int>
- <array class="NSMutableArray" key="NSSubviews">
- <reference ref="585422699"/>
- </array>
- <string key="NSFrame">{{1, 0}, {653, 17}}</string>
- <reference key="NSSuperview" ref="1058737857"/>
- <reference key="NSNextKeyView" ref="585422699"/>
- <reference key="NSDocView" ref="585422699"/>
- <reference key="NSBGColor" ref="982893534"/>
- <int key="NScvFlags">4</int>
- </object>
- <reference ref="732160208"/>
- </array>
- <string key="NSFrame">{{17, 57}, {655, 407}}</string>
- <reference key="NSSuperview" ref="754680531"/>
- <reference key="NSNextKeyView" ref="486641302"/>
- <int key="NSsFlags">562</int>
- <reference key="NSVScroller" ref="482759234"/>
- <reference key="NSHScroller" ref="36525843"/>
- <reference key="NSContentView" ref="486641302"/>
- <reference key="NSHeaderClipView" ref="114719178"/>
- <reference key="NSCornerView" ref="732160208"/>
- <bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
- </object>
- </array>
- <string key="NSFrame">{{10, 33}, {689, 487}}</string>
- </object>
- <string key="NSLabel">Table View</string>
- <reference key="NSColor" ref="170229746"/>
- <reference key="NSTabView" ref="598199649"/>
- </object>
<object class="NSTabViewItem" id="1070254707">
<string key="NSIdentifier">Item 2</string>
<object class="NSView" key="NSView" id="14461626">
@@ -1185,179 +987,12 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<int key="objectID">16</int>
<reference key="object" ref="598199649"/>
<array class="NSMutableArray" key="children">
- <reference ref="563769272"/>
<reference ref="1070254707"/>
<reference ref="465336225"/>
- <object class="NSScrollView" id="258189426">
- <nil key="NSNextResponder"/>
- <int key="NSvFlags">268</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSClipView" id="566232508">
- <reference key="NSNextResponder" ref="258189426"/>
- <int key="NSvFlags">2304</int>
- <array class="NSMutableArray" key="NSSubviews">
- <object class="NSTableView" id="240036917">
- <reference key="NSNextResponder" ref="566232508"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrameSize">{147, 19}</string>
- <reference key="NSSuperview" ref="566232508"/>
- <bool key="NSEnabled">YES</bool>
- <object class="NSTableHeaderView" key="NSHeaderView" id="706291721">
- <reference key="NSNextResponder" ref="287236921"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrameSize">{147, 17}</string>
- <reference key="NSSuperview" ref="287236921"/>
- <reference key="NSTableView" ref="240036917"/>
- </object>
- <object class="_NSCornerView" key="NSCornerView" id="411125181">
- <reference key="NSNextResponder" ref="258189426"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrame">{{1, 0}, {1, 0}}</string>
- <reference key="NSSuperview" ref="258189426"/>
- </object>
- <array class="NSMutableArray" key="NSTableColumns">
- <object class="NSTableColumn" id="897765483">
- <double key="NSWidth">101</double>
- <double key="NSMinWidth">40</double>
- <double key="NSMaxWidth">1000</double>
- <object class="NSTableHeaderCell" key="NSHeaderCell">
- <int key="NSCellFlags">75628096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents"/>
- <reference key="NSSupport" ref="26"/>
- <object class="NSColor" key="NSBackgroundColor" id="537087702">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes>
- </object>
- <object class="NSColor" key="NSTextColor" id="618480684">
- <int key="NSColorSpace">6</int>
- <string key="NSCatalogName">System</string>
- <string key="NSColorName">disabledControlTextColor</string>
- <object class="NSColor" key="NSColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC4zMzMzMzMzMzMzAA</bytes>
- </object>
- </object>
- </object>
- <object class="NSTextFieldCell" key="NSDataCell" id="1018034084">
- <int key="NSCellFlags">337772096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">Text Cell</string>
- <reference key="NSSupport" ref="15418343"/>
- <reference key="NSControlView" ref="240036917"/>
- <reference key="NSBackgroundColor" ref="982893534"/>
- <reference key="NSTextColor" ref="934876882"/>
- </object>
- <int key="NSResizingMask">3</int>
- <bool key="NSIsResizeable">YES</bool>
- <bool key="NSIsEditable">YES</bool>
- <reference key="NSTableView" ref="240036917"/>
- </object>
- <object class="NSTableColumn" id="296430624">
- <double key="NSWidth">40</double>
- <double key="NSMinWidth">40</double>
- <double key="NSMaxWidth">1000</double>
- <object class="NSTableHeaderCell" key="NSHeaderCell">
- <int key="NSCellFlags">75628096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents"/>
- <reference key="NSSupport" ref="26"/>
- <reference key="NSBackgroundColor" ref="537087702"/>
- <reference key="NSTextColor" ref="618480684"/>
- </object>
- <object class="NSTextFieldCell" key="NSDataCell" id="1055703216">
- <int key="NSCellFlags">337772096</int>
- <int key="NSCellFlags2">2048</int>
- <string key="NSContents">Text Cell</string>
- <reference key="NSSupport" ref="15418343"/>
- <reference key="NSControlView" ref="240036917"/>
- <reference key="NSBackgroundColor" ref="982893534"/>
- <reference key="NSTextColor" ref="934876882"/>
- </object>
- <int key="NSResizingMask">3</int>
- <bool key="NSIsResizeable">YES</bool>
- <bool key="NSIsEditable">YES</bool>
- <reference key="NSTableView" ref="240036917"/>
- </object>
- </array>
- <double key="NSIntercellSpacingWidth">3</double>
- <double key="NSIntercellSpacingHeight">2</double>
- <reference key="NSBackgroundColor" ref="564547993"/>
- <reference key="NSGridColor" ref="279940"/>
- <double key="NSRowHeight">17</double>
- <int key="NSTvFlags">-698351616</int>
- <reference key="NSDelegate"/>
- <reference key="NSDataSource"/>
- <int key="NSColumnAutoresizingStyle">4</int>
- <int key="NSDraggingSourceMaskForLocal">15</int>
- <int key="NSDraggingSourceMaskForNonLocal">0</int>
- <bool key="NSAllowsTypeSelect">YES</bool>
- <int key="NSTableViewDraggingDestinationStyle">0</int>
- </object>
- </array>
- <string key="NSFrame">{{1, 0}, {0, 0}}</string>
- <reference key="NSSuperview" ref="258189426"/>
- <reference key="NSNextKeyView" ref="240036917"/>
- <reference key="NSDocView" ref="240036917"/>
- <reference key="NSBGColor" ref="982893534"/>
- <int key="NScvFlags">4</int>
- </object>
- <object class="NSScroller" id="181712446">
- <reference key="NSNextResponder" ref="258189426"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrame">{{-14, 0}, {15, -15}}</string>
- <reference key="NSSuperview" ref="258189426"/>
- <bool key="NSEnabled">YES</bool>
- <reference key="NSTarget" ref="258189426"/>
- <string key="NSAction">_doScroller:</string>
- </object>
- <object class="NSScroller" id="691287754">
- <reference key="NSNextResponder" ref="258189426"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrame">{{1, -15}, {-15, 15}}</string>
- <reference key="NSSuperview" ref="258189426"/>
- <bool key="NSEnabled">YES</bool>
- <int key="NSsFlags">1</int>
- <reference key="NSTarget" ref="258189426"/>
- <string key="NSAction">_doScroller:</string>
- </object>
- <object class="NSClipView" id="287236921">
- <reference key="NSNextResponder" ref="258189426"/>
- <int key="NSvFlags">2304</int>
- <array class="NSMutableArray" key="NSSubviews">
- <reference ref="706291721"/>
- </array>
- <string key="NSFrame">{{1, 0}, {0, 0}}</string>
- <reference key="NSSuperview" ref="258189426"/>
- <reference key="NSNextKeyView" ref="706291721"/>
- <reference key="NSDocView" ref="706291721"/>
- <reference key="NSBGColor" ref="982893534"/>
- <int key="NScvFlags">4</int>
- </object>
- <reference ref="411125181"/>
- </array>
- <string key="NSFrame">{{6.95322e-310, 6.95325e-310}, {0, 2.76677e-322}}</string>
- <reference key="NSNextKeyView" ref="566232508"/>
- <int key="NSsFlags">754</int>
- <reference key="NSVScroller" ref="181712446"/>
- <reference key="NSHScroller" ref="691287754"/>
- <reference key="NSContentView" ref="566232508"/>
- <reference key="NSHeaderClipView" ref="287236921"/>
- <reference key="NSCornerView" ref="411125181"/>
- <bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
- </object>
</array>
<reference key="parent" ref="109180371"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">17</int>
- <reference key="object" ref="563769272"/>
- <array class="NSMutableArray" key="children">
- <reference ref="754680531"/>
- </array>
- <reference key="parent" ref="598199649"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">18</int>
<reference key="object" ref="465336225"/>
<array class="NSMutableArray" key="children">
@@ -1383,14 +1018,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<reference key="parent" ref="465336225"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">20</int>
- <reference key="object" ref="754680531"/>
- <array class="NSMutableArray" key="children">
- <reference ref="1058737857"/>
- </array>
- <reference key="parent" ref="563769272"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">55</int>
<reference key="object" ref="615959826"/>
<array class="NSMutableArray" key="children">
@@ -1579,142 +1206,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<reference key="parent" ref="1070254707"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">114</int>
- <reference key="object" ref="258189426"/>
- <array class="NSMutableArray" key="children">
- <reference ref="181712446"/>
- <reference ref="691287754"/>
- <reference ref="240036917"/>
- <reference ref="706291721"/>
- </array>
- <reference key="parent" ref="598199649"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">115</int>
- <reference key="object" ref="181712446"/>
- <reference key="parent" ref="258189426"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">116</int>
- <reference key="object" ref="691287754"/>
- <reference key="parent" ref="258189426"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">117</int>
- <reference key="object" ref="240036917"/>
- <array class="NSMutableArray" key="children">
- <reference ref="897765483"/>
- <reference ref="296430624"/>
- </array>
- <reference key="parent" ref="258189426"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">118</int>
- <reference key="object" ref="706291721"/>
- <reference key="parent" ref="258189426"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">119</int>
- <reference key="object" ref="897765483"/>
- <array class="NSMutableArray" key="children">
- <reference ref="1018034084"/>
- </array>
- <reference key="parent" ref="240036917"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">120</int>
- <reference key="object" ref="296430624"/>
- <array class="NSMutableArray" key="children">
- <reference ref="1055703216"/>
- </array>
- <reference key="parent" ref="240036917"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">121</int>
- <reference key="object" ref="1055703216"/>
- <reference key="parent" ref="296430624"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">122</int>
- <reference key="object" ref="1018034084"/>
- <reference key="parent" ref="897765483"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">123</int>
- <reference key="object" ref="1058737857"/>
- <array class="NSMutableArray" key="children">
- <reference ref="482759234"/>
- <reference ref="36525843"/>
- <reference ref="326749328"/>
- <reference ref="585422699"/>
- </array>
- <reference key="parent" ref="754680531"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">124</int>
- <reference key="object" ref="482759234"/>
- <reference key="parent" ref="1058737857"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">125</int>
- <reference key="object" ref="36525843"/>
- <reference key="parent" ref="1058737857"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">126</int>
- <reference key="object" ref="326749328"/>
- <array class="NSMutableArray" key="children">
- <reference ref="296709564"/>
- <reference ref="529714959"/>
- <reference ref="714119601"/>
- </array>
- <reference key="parent" ref="1058737857"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">127</int>
- <reference key="object" ref="585422699"/>
- <reference key="parent" ref="1058737857"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">128</int>
- <reference key="object" ref="296709564"/>
- <array class="NSMutableArray" key="children">
- <reference ref="779467799"/>
- </array>
- <reference key="parent" ref="326749328"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">129</int>
- <reference key="object" ref="529714959"/>
- <array class="NSMutableArray" key="children">
- <reference ref="566237804"/>
- </array>
- <reference key="parent" ref="326749328"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">130</int>
- <reference key="object" ref="566237804"/>
- <reference key="parent" ref="529714959"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">131</int>
- <reference key="object" ref="779467799"/>
- <reference key="parent" ref="296709564"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">132</int>
- <reference key="object" ref="714119601"/>
- <array class="NSMutableArray" key="children">
- <reference ref="728580227"/>
- </array>
- <reference key="parent" ref="326749328"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">133</int>
- <reference key="object" ref="728580227"/>
- <reference key="parent" ref="714119601"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">134</int>
<reference key="object" ref="345066457"/>
<array class="NSMutableArray" key="children">
@@ -1781,52 +1272,15 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="1.IBEditorWindowLastContentRect">{{74, 126}, {945, 557}}</string>
+ <string key="1.IBEditorWindowLastContentRect">{{18, 188}, {945, 557}}</string>
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="1.IBWindowTemplateEditedContentRect">{{74, 126}, {945, 557}}</string>
+ <string key="1.IBWindowTemplateEditedContentRect">{{18, 188}, {945, 557}}</string>
<integer value="1" key="1.NSWindowTemplate.visibleAtLaunch"/>
<string key="1.WindowOrigin">{196, 240}</string>
<string key="1.editorWindowContentRectSynchronizationRect">{{357, 418}, {480, 270}}</string>
<string key="100.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="101.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="102.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="114.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="115.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="116.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="117.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="118.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="119.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="120.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="121.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="122.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="123.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="124.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="125.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <object class="NSMutableDictionary" key="126.IBAttributePlaceholdersKey">
- <string key="NS.key.0">IBUserDefinedRuntimeAttributesPlaceholderName</string>
- <object class="IBUserDefinedRuntimeAttributesPlaceholder" key="NS.object.0">
- <string key="name">IBUserDefinedRuntimeAttributesPlaceholderName</string>
- <reference key="object" ref="326749328"/>
- <array key="userDefinedRuntimeAttributes">
- <object class="IBUserDefinedRuntimeAttribute">
- <string key="typeIdentifier">com.apple.InterfaceBuilder.userDefinedRuntimeAttributeType.string</string>
- <string key="keyPath">contentBinding</string>
- <string key="value">DemoApp.demoController.people</string>
- </object>
- <object class="IBUserDefinedRuntimeAttribute">
- <string key="typeIdentifier">com.apple.InterfaceBuilder.userDefinedRuntimeAttributeType.string</string>
- <string key="keyPath">exampleView</string>
- <string key="value">SC.TableRowView</string>
- </object>
- </array>
- </object>
- </object>
- <string key="126.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="127.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="128.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="129.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="130.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="131.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="134.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="135.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="136.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -1859,11 +1313,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSAffineTransform" key="16.IBViewBoundsToFrameTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABBUAAAxAdAAA</bytes>
</object>
- <string key="17.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="19.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="20.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<object class="NSMutableDictionary" key="3.IBAttributePlaceholdersKey">
<string key="NS.key.0">IBUserDefinedRuntimeAttributesPlaceholderName</string>
<object class="IBUserDefinedRuntimeAttributesPlaceholder" key="NS.object.0">
View
25 resources/SCXIB.xslt
@@ -25,6 +25,11 @@
<xsl:with-param name="panelNode" select="*[@key='IBDocument.RootObjects']/object[@class='NSWindowTemplate']"/>
</xsl:call-template>
</xsl:when>
+ <xsl:when test="*[@key='IBDocument.RootObjects']/object[@class='NSCustomView']">
+ <xsl:call-template name="FromCustomView">
+ <xsl:with-param name="windowNode" select="*[@key='IBDocument.RootObjects']/object[@class='NSCustomView']"/>
+ </xsl:call-template>
+ </xsl:when>
<xsl:otherwise>
<xsl:call-template name="FromCustomView">
<xsl:with-param name="windowNode" select="*[@key='IBDocument.RootObjects']/object[@class='NSView']"/>
@@ -445,12 +450,22 @@
<xsl:with-param name="nodes" select="$windowNode/*[@key='NSSubviews']/object" />
</xsl:call-template>
<xsl:value-of select="$namespace"/>.<xsl:value-of select="$pageName"/> = SC.View.design({
- layout: {top:0, left:0, right:0, bottom:0},
- childViews:[
- <xsl:call-template name="ProcessNodes">
- <xsl:with-param name="nodes" select="$windowNode/*[@key='NSSubviews']/object" />
+ <xsl:call-template name="LayoutFromFrame">
+ <xsl:with-param name="node" select="$windowNode"/>
+ <xsl:with-param name="parentNodeRefId" select="$windowNode/reference[@key='NSSuperview']/@ref"/>
+ </xsl:call-template>
+ <xsl:call-template name="KeyValuePropertiesForObject">
+ <xsl:with-param name="objectId" select="$windowNode/@id"/>
</xsl:call-template>
- ]
+ <xsl:if test="count($windowNode/*[@key='NSSubviews']/object) &gt; 0">
+ childViews:[
+ <xsl:for-each select="$windowNode/*[@key='NSSubviews']/object">
+ <xsl:call-template name="ProcessNodes">
+ <xsl:with-param name="nodes" select="."/>
+ </xsl:call-template>
+ </xsl:for-each>
+ ]
+ </xsl:if>
});
</xsl:template>

0 comments on commit 09dfa43

Please sign in to comment.
Something went wrong with that request. Please try again.