mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
When an item created with +tabViewItemWithViewController:, the view is loaded asynchronously Manual test CPTabViewNib have been modified to show a tab view item managed by a view controller. Any setup happens in -viewDidAppear: because we cannot use any more the tabView:didSelectTabViewItem: delegate method.
210 lines
16 KiB
XML
210 lines
16 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11191" systemVersion="15G31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
|
<dependencies>
|
|
<deployment version="1050" identifier="macosx"/>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11191"/>
|
|
</dependencies>
|
|
<objects>
|
|
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
|
<connections>
|
|
<outlet property="delegate" destination="450" id="451"/>
|
|
</connections>
|
|
</customObject>
|
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
|
<customObject id="450" customClass="AppController">
|
|
<connections>
|
|
<outlet property="insertStepper" destination="508" id="513"/>
|
|
<outlet property="nibTabView" destination="460" id="482"/>
|
|
<outlet property="nibTabViewEmpty" destination="465" id="486"/>
|
|
<outlet property="removeStepper" destination="519" id="524"/>
|
|
</connections>
|
|
</customObject>
|
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="371">
|
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" bottomStrut="YES"/>
|
|
<rect key="contentRect" x="110" y="567" width="1105" height="463"/>
|
|
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/>
|
|
<view key="contentView" misplaced="YES" id="372">
|
|
<rect key="frame" x="0.0" y="0.0" width="1105" height="463"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<tabView misplaced="YES" id="460">
|
|
<rect key="frame" x="257" y="15" width="582" height="434"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES"/>
|
|
<font key="font" metaFont="system"/>
|
|
<tabViewItems>
|
|
<tabViewItem label="Tab" identifier="1" id="461">
|
|
<view key="view" id="464">
|
|
<rect key="frame" x="10" y="33" width="562" height="388"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" id="497">
|
|
<rect key="frame" x="268" y="192" width="26" height="17"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Tab" id="498">
|
|
<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>
|
|
</subviews>
|
|
</view>
|
|
</tabViewItem>
|
|
<tabViewItem label="View" identifier="" image="NSAddTemplate" id="488">
|
|
<view key="view" id="489">
|
|
<rect key="frame" x="10" y="33" width="562" height="388"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="495">
|
|
<rect key="frame" x="198" y="238" width="33" height="17"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="View" id="496">
|
|
<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>
|
|
</subviews>
|
|
</view>
|
|
</tabViewItem>
|
|
<tabViewItem label="Not Selectable" identifier="unselectable" id="462">
|
|
<view key="view" id="463">
|
|
<rect key="frame" x="10" y="33" width="562" height="388"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="502">
|
|
<rect key="frame" x="170" y="238" width="95" height="17"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Not Selectable" id="503">
|
|
<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>
|
|
</subviews>
|
|
</view>
|
|
</tabViewItem>
|
|
</tabViewItems>
|
|
<connections>
|
|
<outlet property="delegate" destination="450" id="477"/>
|
|
</connections>
|
|
</tabView>
|
|
<tabView misplaced="YES" id="465">
|
|
<rect key="frame" x="846" y="15" width="242" height="434"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMinY="YES" heightSizable="YES"/>
|
|
<font key="font" metaFont="system"/>
|
|
<tabViewItems>
|
|
<tabViewItem label="Item 0" identifier="" id="490">
|
|
<view key="view" id="491">
|
|
<rect key="frame" x="10" y="33" width="222" height="388"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<textField verticalHuggingPriority="750" misplaced="YES" id="475">
|
|
<rect key="frame" x="0.0" y="205" width="222" height="17"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="A Tab View Item Sould be Selected" id="476">
|
|
<font key="font" metaFont="system"/>
|
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
</view>
|
|
</tabViewItem>
|
|
</tabViewItems>
|
|
<connections>
|
|
<outlet property="delegate" destination="450" id="487"/>
|
|
</connections>
|
|
</tabView>
|
|
<button verticalHuggingPriority="750" misplaced="YES" id="479">
|
|
<rect key="frame" x="15" y="279" width="234" height="32"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
|
<buttonCell key="cell" type="push" title="Replace Current View" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="480">
|
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
<font key="font" metaFont="system"/>
|
|
</buttonCell>
|
|
<connections>
|
|
<action selector="changeView:" target="450" id="481"/>
|
|
</connections>
|
|
</button>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" id="506">
|
|
<rect key="frame" x="200" y="409" width="27" height="19"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="0" id="507">
|
|
<font key="font" metaFont="system" size="16"/>
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
<button verticalHuggingPriority="750" misplaced="YES" id="510">
|
|
<rect key="frame" x="15" y="402" width="194" height="32"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<buttonCell key="cell" type="push" title="InsertTabViewItemAtIndex:" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="511">
|
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
<font key="font" metaFont="system"/>
|
|
</buttonCell>
|
|
<connections>
|
|
<action selector="insertTabViewItem:" target="450" id="514"/>
|
|
</connections>
|
|
</button>
|
|
<button verticalHuggingPriority="750" misplaced="YES" id="515">
|
|
<rect key="frame" x="14" y="317" width="199" height="32"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<buttonCell key="cell" type="push" title="removeTabViewItemAtIndex:" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="516">
|
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
<font key="font" metaFont="system"/>
|
|
</buttonCell>
|
|
<connections>
|
|
<action selector="removeTabViewItem:" target="450" id="523"/>
|
|
</connections>
|
|
</button>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" id="518">
|
|
<rect key="frame" x="205" y="322" width="20" height="20"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="0" id="521">
|
|
<font key="font" metaFont="system" size="16"/>
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
<button verticalHuggingPriority="750" misplaced="YES" id="Pto-9B-RvK">
|
|
<rect key="frame" x="14" y="361" width="233" height="32"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<buttonCell key="cell" type="push" title="Insert CPViewController based" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="0lc-u3-XoO">
|
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
<font key="font" metaFont="system"/>
|
|
</buttonCell>
|
|
<connections>
|
|
<action selector="insertViewControllerTabViewItem:" target="450" id="npN-Ru-LnB"/>
|
|
</connections>
|
|
</button>
|
|
<stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" misplaced="YES" id="508">
|
|
<rect key="frame" x="218" y="407" width="19" height="27"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<stepperCell key="cell" continuous="YES" alignment="left" maxValue="100" id="509"/>
|
|
<connections>
|
|
<action selector="takeIntValueFrom:" target="506" id="512"/>
|
|
</connections>
|
|
</stepper>
|
|
<stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" misplaced="YES" id="519">
|
|
<rect key="frame" x="220" y="322" width="19" height="27"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<stepperCell key="cell" continuous="YES" alignment="left" maxValue="100" id="520"/>
|
|
<connections>
|
|
<action selector="takeIntValueFrom:" target="518" id="522"/>
|
|
</connections>
|
|
</stepper>
|
|
</subviews>
|
|
</view>
|
|
<connections>
|
|
<outlet property="initialFirstResponder" destination="460" id="492"/>
|
|
</connections>
|
|
<point key="canvasLocation" x="535.5" y="382.5"/>
|
|
</window>
|
|
</objects>
|
|
<resources>
|
|
<image name="NSAddTemplate" width="11" height="11"/>
|
|
</resources>
|
|
</document>
|