Skip to content

Commit

Permalink
Add support for pipe-delimited files #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob committed Sep 21, 2016
1 parent 14b74cb commit 80421ab
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
25 changes: 13 additions & 12 deletions Table Tool/TTFormatViewController.xib
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9060" systemVersion="14F1713" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9060"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="TTFormatViewController">
Expand All @@ -17,11 +17,11 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<view id="uWa-ZF-fcn">
<rect key="frame" x="0.0" y="0.0" width="767" height="34"/>
<rect key="frame" x="0.0" y="0.0" width="784" height="34"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<popUpButton verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="m7v-7K-NRZ">
<rect key="frame" x="75" y="5" width="223" height="22"/>
<rect key="frame" x="74" y="5" width="223" height="22"/>
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="vmc-PX-Znv">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
Expand Down Expand Up @@ -53,29 +53,30 @@
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" verticalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Tc8-cG-co1">
<rect key="frame" x="18" y="10" width="54" height="14"/>
<rect key="frame" x="18" y="10" width="53" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Encoding" id="2qh-Ft-dH3">
<font key="font" metaFont="smallSystem"/>
<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="R0k-y0-B2K">
<rect key="frame" x="301" y="10" width="56" height="14"/>
<rect key="frame" x="300" y="10" width="56" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Separator" id="g3k-Et-CPk">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7Iq-Qh-egS">
<rect key="frame" x="361" y="6" width="75" height="20"/>
<rect key="frame" x="360" y="6" width="96" height="20"/>
<segmentedCell key="cell" controlSize="small" borderStyle="border" alignment="left" style="rounded" trackingMode="selectOne" id="C2o-jP-EF2">
<font key="font" metaFont="smallSystem"/>
<segments>
<segment label="," selected="YES"/>
<segment label=";" tag="1"/>
<segment label="" tag="2"/>
<segment label="|" tag="3"/>
</segments>
</segmentedCell>
<connections>
Expand All @@ -84,23 +85,23 @@
</connections>
</segmentedControl>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="8QF-zx-ee2">
<rect key="frame" x="542" y="10" width="37" height="14"/>
<rect key="frame" x="561" y="10" width="36" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Quote" id="A2l-Uw-arU">
<font key="font" metaFont="smallSystem"/>
<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="SRM-hM-oK9">
<rect key="frame" x="440" y="10" width="47" height="14"/>
<rect key="frame" x="460" y="10" width="46" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Decimal" id="rhn-U5-DWG">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ex4-c5-GWU">
<rect key="frame" x="491" y="6" width="47" height="20"/>
<rect key="frame" x="510" y="6" width="47" height="20"/>
<segmentedCell key="cell" controlSize="small" borderStyle="border" alignment="left" style="rounded" trackingMode="selectOne" id="d4a-n0-Zii">
<font key="font" metaFont="smallSystem"/>
<segments>
Expand All @@ -114,7 +115,7 @@
</connections>
</segmentedControl>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="yrD-55-LxA">
<rect key="frame" x="583" y="6" width="102" height="20"/>
<rect key="frame" x="601" y="6" width="101" height="20"/>
<segmentedCell key="cell" controlSize="small" borderStyle="border" alignment="left" style="rounded" trackingMode="selectOne" id="XAD-11-Jjs">
<font key="font" metaFont="smallSystem"/>
<segments>
Expand All @@ -129,7 +130,7 @@
</connections>
</segmentedControl>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="n5T-kl-CuM">
<rect key="frame" x="688" y="8" width="61" height="18"/>
<rect key="frame" x="705" y="8" width="61" height="18"/>
<buttonCell key="cell" type="check" title="Header" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="cgT-F0-Q53">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
Expand Down
27 changes: 14 additions & 13 deletions Table Tool/TTFormatViewControllerAccessory.xib
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9060" systemVersion="14F1808" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9060"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="TTFormatViewController">
Expand All @@ -17,17 +17,17 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<view id="uWa-ZF-fcn">
<rect key="frame" x="0.0" y="0.0" width="420" height="84"/>
<rect key="frame" x="0.0" y="0.0" width="438" height="84"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<popUpButton verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="m7v-7K-NRZ">
<rect key="frame" x="75" y="43" width="223" height="22"/>
<rect key="frame" x="74" y="43" width="223" height="22"/>
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="vmc-PX-Znv">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="smallSystem"/>
<menu key="menu" id="gXz-Dr-gC4">
<items>
<menuItem title="Unicode (UTF-8)" tag="4" id="azY-g1-sDt"/>
<menuItem title="Unicode (UTF-8)" state="on" tag="4" id="azY-g1-sDt"/>
<menuItem title="Western (Mac OS Roman)" tag="30" id="jbj-mB-RkV"/>
<menuItem title="Western (Windows Latin 1)" tag="12" id="DLX-c9-gUH"/>
<menuItem title="Central European (ISO Latin 2)" tag="9" id="Hu2-Kn-ppA"/>
Expand All @@ -53,7 +53,7 @@
</connections>
</popUpButton>
<textField verticalHuggingPriority="750" verticalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Tc8-cG-co1">
<rect key="frame" x="18" y="48" width="54" height="14"/>
<rect key="frame" x="18" y="48" width="53" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Encoding" id="2qh-Ft-dH3">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
Expand All @@ -69,13 +69,14 @@
</textFieldCell>
</textField>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7Iq-Qh-egS">
<rect key="frame" x="78" y="18" width="75" height="20"/>
<rect key="frame" x="78" y="18" width="96" height="20"/>
<segmentedCell key="cell" controlSize="small" borderStyle="border" alignment="left" style="rounded" trackingMode="selectOne" id="C2o-jP-EF2">
<font key="font" metaFont="smallSystem"/>
<segments>
<segment label="," selected="YES"/>
<segment label=";" tag="1"/>
<segment label="" tag="2"/>
<segment label="|" tag="3"/>
</segments>
</segmentedCell>
<connections>
Expand All @@ -84,23 +85,23 @@
</connections>
</segmentedControl>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="8QF-zx-ee2">
<rect key="frame" x="259" y="22" width="37" height="14"/>
<rect key="frame" x="279" y="22" width="36" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Quote" id="A2l-Uw-arU">
<font key="font" metaFont="smallSystem"/>
<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="SRM-hM-oK9">
<rect key="frame" x="157" y="22" width="47" height="14"/>
<rect key="frame" x="178" y="22" width="46" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Decimal" id="rhn-U5-DWG">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ex4-c5-GWU">
<rect key="frame" x="208" y="18" width="47" height="20"/>
<rect key="frame" x="228" y="18" width="47" height="20"/>
<segmentedCell key="cell" controlSize="small" borderStyle="border" alignment="left" style="rounded" trackingMode="selectOne" id="d4a-n0-Zii">
<font key="font" metaFont="smallSystem"/>
<segments>
Expand All @@ -114,7 +115,7 @@
</connections>
</segmentedControl>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="yrD-55-LxA">
<rect key="frame" x="300" y="18" width="102" height="20"/>
<rect key="frame" x="319" y="18" width="101" height="20"/>
<segmentedCell key="cell" controlSize="small" borderStyle="border" alignment="left" style="rounded" trackingMode="selectOne" id="XAD-11-Jjs">
<font key="font" metaFont="smallSystem"/>
<segments>
Expand All @@ -129,7 +130,7 @@
</connections>
</segmentedControl>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="n5T-kl-CuM">
<rect key="frame" x="341" y="46" width="61" height="18"/>
<rect key="frame" x="359" y="46" width="61" height="18"/>
<buttonCell key="cell" type="check" title="Header" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="cgT-F0-Q53">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="smallSystem"/>
Expand Down Expand Up @@ -161,7 +162,7 @@
<constraint firstItem="yrD-55-LxA" firstAttribute="leading" secondItem="8QF-zx-ee2" secondAttribute="trailing" constant="8" id="tt2-T0-zcM"/>
<constraint firstItem="SRM-hM-oK9" firstAttribute="centerY" secondItem="R0k-y0-B2K" secondAttribute="centerY" id="zPT-AW-RFB"/>
</constraints>
<point key="canvasLocation" x="338" y="649"/>
<point key="canvasLocation" x="296" y="560"/>
</view>
</objects>
</document>

0 comments on commit 80421ab

Please sign in to comment.