Initial window layout
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
/* Begin PBXBuildFile section */
|
||||
821E160721D7ED3F00E2D71A /* TokenDeserializer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 821E160621D7ED3F00E2D71A /* TokenDeserializer.swift */; };
|
||||
821E162821DA9A3700E2D71A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 821E162721DA9A3700E2D71A /* Main.storyboard */; };
|
||||
821E165621DAA54900E2D71A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 821E165521DAA54900E2D71A /* ViewController.swift */; };
|
||||
82CAF46A21D7D41800FED241 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82CAF46921D7D41800FED241 /* AppDelegate.swift */; };
|
||||
82CAF46C21D7D41C00FED241 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 82CAF46B21D7D41C00FED241 /* Assets.xcassets */; };
|
||||
82CAF47B21D7D41C00FED241 /* JotTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82CAF47A21D7D41C00FED241 /* JotTests.swift */; };
|
||||
@@ -31,6 +32,7 @@
|
||||
/* Begin PBXFileReference section */
|
||||
821E160621D7ED3F00E2D71A /* TokenDeserializer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenDeserializer.swift; sourceTree = "<group>"; };
|
||||
821E162721DA9A3700E2D71A /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
|
||||
821E165521DAA54900E2D71A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
|
||||
82CAF46621D7D41800FED241 /* Jot.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Jot.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
82CAF46921D7D41800FED241 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
82CAF46B21D7D41C00FED241 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
@@ -89,6 +91,7 @@
|
||||
82CAF46921D7D41800FED241 /* AppDelegate.swift */,
|
||||
82CAF46B21D7D41C00FED241 /* Assets.xcassets */,
|
||||
821E162721DA9A3700E2D71A /* Main.storyboard */,
|
||||
821E165521DAA54900E2D71A /* ViewController.swift */,
|
||||
82CAF47021D7D41C00FED241 /* Info.plist */,
|
||||
82CAF47121D7D41C00FED241 /* Jot.entitlements */,
|
||||
);
|
||||
@@ -235,6 +238,7 @@
|
||||
82CAF48D21D7D60100FED241 /* Header.swift in Sources */,
|
||||
82CAF48B21D7D5B700FED241 /* Payload.swift in Sources */,
|
||||
82CAF46A21D7D41800FED241 /* AppDelegate.swift in Sources */,
|
||||
821E165621DAA54900E2D71A /* ViewController.swift in Sources */,
|
||||
82CAF48F21D7D81800FED241 /* Signature.swift in Sources */,
|
||||
82CAF48821D7D56D00FED241 /* Jwt.swift in Sources */,
|
||||
);
|
||||
|
@@ -704,10 +704,191 @@
|
||||
<!--View Controller-->
|
||||
<scene sceneID="hIz-AP-VOD">
|
||||
<objects>
|
||||
<viewController id="XfG-lQ-9wD" customClass="ViewController" sceneMemberID="viewController">
|
||||
<viewController id="XfG-lQ-9wD" customClass="ViewController" customModule="Jot" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" wantsLayer="YES" id="m2S-Jp-Qdl">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dWm-hs-uGJ">
|
||||
<rect key="frame" x="202" y="20" width="258" height="200"/>
|
||||
<clipView key="contentView" id="fE7-t6-uzL">
|
||||
<rect key="frame" x="1" y="0.0" width="256" height="199"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" headerView="RCc-he-ZlT" viewBased="YES" id="hMf-0E-Kx7">
|
||||
<rect key="frame" x="0.0" y="0.0" width="256" height="174"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn width="116" minWidth="40" maxWidth="1000" id="9qp-WJ-bgQ">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" title="Text Cell" id="FhF-Ll-Aq0">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="JwP-Ga-QdJ">
|
||||
<rect key="frame" x="1" y="1" width="116" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5Us-iA-tGE">
|
||||
<rect key="frame" x="0.0" y="0.0" width="116" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="f3d-fs-52f">
|
||||
<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>
|
||||
<connections>
|
||||
<outlet property="textField" destination="5Us-iA-tGE" id="d6g-Rc-evn"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn width="134" minWidth="40" maxWidth="1000" id="ZcP-3I-0jy">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" title="Text Cell" id="dcD-Jj-bPn">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView id="lCW-YM-AnR">
|
||||
<rect key="frame" x="120" y="1" width="134" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="01a-Qe-g62">
|
||||
<rect key="frame" x="0.0" y="0.0" width="134" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="467-0I-blf">
|
||||
<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>
|
||||
<connections>
|
||||
<outlet property="textField" destination="01a-Qe-g62" id="1T8-dY-Wy8"/>
|
||||
</connections>
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
</tableView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="dRv-H9-0MR">
|
||||
<rect key="frame" x="1" y="119" width="223" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="bO0-T2-PhJ">
|
||||
<rect key="frame" x="224" y="17" width="15" height="102"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<tableHeaderView key="headerView" id="RCc-he-ZlT">
|
||||
<rect key="frame" x="0.0" y="0.0" width="256" height="25"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
<scrollView borderType="line" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" horizontalScrollElasticity="none" translatesAutoresizingMaskIntoConstraints="NO" id="rwL-1l-Kbe">
|
||||
<rect key="frame" x="20" y="52" width="163" height="198"/>
|
||||
<clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="NLv-aE-2I0">
|
||||
<rect key="frame" x="1" y="1" width="161" height="196"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textView importsGraphics="NO" richText="NO" verticallyResizable="YES" spellingCorrection="YES" smartInsertDelete="YES" id="Xu4-Je-jSy">
|
||||
<rect key="frame" x="0.0" y="0.0" width="161" height="196"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<size key="minSize" width="161" height="196"/>
|
||||
<size key="maxSize" width="240" height="10000000"/>
|
||||
<color key="insertionPointColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
</textView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="89o-3q-s9c">
|
||||
<rect key="frame" x="146" y="1" width="16" height="196"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ucN-eu-rjn" userLabel="Clipboard Button">
|
||||
<rect key="frame" x="14" y="13" width="174" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="Import from Clipboard" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="qWr-X6-BYg">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPr-JT-vJ5">
|
||||
<rect key="frame" x="202" y="233" width="67" height="17"/>
|
||||
<textFieldCell key="cell" lineBreakMode="clipping" title="Algorithm:" id="onY-Rb-3lr">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ozd-8y-Hbf" userLabel="Algorithm Label">
|
||||
<rect key="frame" x="273" y="233" width="37" height="17"/>
|
||||
<textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="ctx-LQ-4Tc">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mzO-NU-UpT">
|
||||
<rect key="frame" x="383" y="233" width="38" height="17"/>
|
||||
<textFieldCell key="cell" lineBreakMode="clipping" title="Type:" id="hrz-Qa-N2Q">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dnS-hC-tGI" userLabel="Type Label">
|
||||
<rect key="frame" x="425" y="233" width="37" height="17"/>
|
||||
<textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="CUX-5n-yuB">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="dnS-hC-tGI" firstAttribute="leading" secondItem="mzO-NU-UpT" secondAttribute="trailing" constant="8" id="099-3V-Ib3"/>
|
||||
<constraint firstItem="ucN-eu-rjn" firstAttribute="top" secondItem="rwL-1l-Kbe" secondAttribute="bottom" constant="11" id="186-MY-c5q"/>
|
||||
<constraint firstAttribute="trailing" secondItem="dWm-hs-uGJ" secondAttribute="trailing" constant="20" id="7KQ-0h-84J"/>
|
||||
<constraint firstAttribute="bottom" secondItem="dWm-hs-uGJ" secondAttribute="bottom" constant="20" id="CgL-Nf-49o"/>
|
||||
<constraint firstItem="dWm-hs-uGJ" firstAttribute="leading" secondItem="ucN-eu-rjn" secondAttribute="trailing" constant="20" id="CwZ-HQ-K4k"/>
|
||||
<constraint firstItem="RCc-he-ZlT" firstAttribute="top" secondItem="mzO-NU-UpT" secondAttribute="bottom" constant="13" id="EPR-Fh-ylu"/>
|
||||
<constraint firstItem="RCc-he-ZlT" firstAttribute="top" secondItem="dnS-hC-tGI" secondAttribute="bottom" constant="13" id="MFk-W9-Nyt"/>
|
||||
<constraint firstItem="ozd-8y-Hbf" firstAttribute="top" secondItem="m2S-Jp-Qdl" secondAttribute="top" constant="20" id="MoH-s3-4Qw"/>
|
||||
<constraint firstAttribute="bottom" secondItem="ucN-eu-rjn" secondAttribute="bottom" constant="20" id="OgH-U2-EhS"/>
|
||||
<constraint firstItem="XPr-JT-vJ5" firstAttribute="leading" secondItem="Xu4-Je-jSy" secondAttribute="trailing" constant="22" id="OoB-Fi-C8o"/>
|
||||
<constraint firstItem="RCc-he-ZlT" firstAttribute="top" secondItem="XPr-JT-vJ5" secondAttribute="bottom" constant="13" id="Tnd-v4-U12"/>
|
||||
<constraint firstItem="rwL-1l-Kbe" firstAttribute="top" secondItem="m2S-Jp-Qdl" secondAttribute="top" constant="20" id="WTk-Un-Iwn"/>
|
||||
<constraint firstAttribute="trailing" secondItem="dnS-hC-tGI" secondAttribute="trailing" constant="20" id="YNA-w8-iw6"/>
|
||||
<constraint firstItem="dWm-hs-uGJ" firstAttribute="leading" secondItem="Xu4-Je-jSy" secondAttribute="trailing" constant="20" id="a2C-5I-qG7"/>
|
||||
<constraint firstItem="rwL-1l-Kbe" firstAttribute="leading" secondItem="m2S-Jp-Qdl" secondAttribute="leading" constant="20" id="eHp-Ld-UbY"/>
|
||||
<constraint firstItem="dWm-hs-uGJ" firstAttribute="top" secondItem="m2S-Jp-Qdl" secondAttribute="top" constant="50" id="hc7-Vk-hIY"/>
|
||||
<constraint firstItem="ozd-8y-Hbf" firstAttribute="leading" secondItem="XPr-JT-vJ5" secondAttribute="trailing" constant="8" id="j1B-XK-qvc"/>
|
||||
<constraint firstItem="XPr-JT-vJ5" firstAttribute="top" secondItem="m2S-Jp-Qdl" secondAttribute="top" constant="20" id="ptB-JC-cv4"/>
|
||||
<constraint firstItem="ucN-eu-rjn" firstAttribute="leading" secondItem="m2S-Jp-Qdl" secondAttribute="leading" constant="20" id="uHi-TR-qsS"/>
|
||||
<constraint firstItem="RCc-he-ZlT" firstAttribute="top" secondItem="ozd-8y-Hbf" secondAttribute="bottom" constant="13" id="wFi-Gd-uhT"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</viewController>
|
||||
<customObject id="rPt-NT-nkU" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
|
||||
|
22
Jot/ViewController.swift
Normal file
22
Jot/ViewController.swift
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// ViewController.swift
|
||||
// Jot
|
||||
//
|
||||
// Created by James Griffin-Allwood on 2018-12-31.
|
||||
// Copyright © 2018 James Griffin-Allwood. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Cocoa
|
||||
|
||||
class ViewController: NSViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
}
|
||||
|
||||
override var representedObject: Any? {
|
||||
didSet {
|
||||
// Update the view, if already loaded.
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user