Skip to content

Commit da76cee

Browse files
author
Robert Gummesson
authored
Merge pull request #50 from MosheBerman/master
Added button to open derived data folder.
2 parents ebdf51e + 6005e8e commit da76cee

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

BuildTimeAnalyzer/Main.storyboard

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,16 @@ Gw
669669
<outlet property="delegate" destination="XfG-lQ-9wD" id="kcF-Uo-l1I"/>
670670
</connections>
671671
</textField>
672+
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="coU-tR-Iyy">
673+
<rect key="frame" x="816" y="28" width="18" height="19"/>
674+
<buttonCell key="cell" type="inline" bezelStyle="inline" image="NSFollowLinkFreestandingTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="zPS-Vu-Noe">
675+
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
676+
<font key="font" metaFont="smallSystemBold"/>
677+
</buttonCell>
678+
<connections>
679+
<action selector="visitDerivedData:" target="XfG-lQ-9wD" id="HW7-Il-IM3"/>
680+
</connections>
681+
</button>
672682
</subviews>
673683
<constraints>
674684
<constraint firstItem="ddp-S7-yG2" firstAttribute="trailing" secondItem="Um0-zQ-09O" secondAttribute="trailing" id="7s6-Yg-1kY"/>
@@ -680,6 +690,7 @@ Gw
680690
<constraint firstItem="O5K-4i-z6g" firstAttribute="leading" secondItem="PV7-TD-diE" secondAttribute="leading" id="Dpn-sp-Fni"/>
681691
<constraint firstItem="c6J-cx-fi8" firstAttribute="leading" secondItem="Um0-zQ-09O" secondAttribute="leading" id="NIy-Q9-e38"/>
682692
<constraint firstItem="Um0-zQ-09O" firstAttribute="centerX" secondItem="wyZ-eU-XEt" secondAttribute="centerX" id="O4l-6w-kjo"/>
693+
<constraint firstItem="coU-tR-Iyy" firstAttribute="leading" secondItem="ptj-Cb-LDq" secondAttribute="trailing" constant="8" id="Ou4-bQ-rT0"/>
683694
<constraint firstItem="ddp-S7-yG2" firstAttribute="leading" secondItem="Um0-zQ-09O" secondAttribute="leading" id="QZf-de-QEb"/>
684695
<constraint firstItem="ptj-Cb-LDq" firstAttribute="trailing" secondItem="ddp-S7-yG2" secondAttribute="trailing" id="QsI-Oh-lIn"/>
685696
<constraint firstItem="PV7-TD-diE" firstAttribute="leading" secondItem="Zkv-Tf-sdq" secondAttribute="leading" id="U3M-6g-IlA"/>
@@ -691,6 +702,7 @@ Gw
691702
<constraint firstItem="NbS-C3-WfY" firstAttribute="centerY" secondItem="c6J-cx-fi8" secondAttribute="centerY" id="lGh-3Z-UEi"/>
692703
<constraint firstItem="ddp-S7-yG2" firstAttribute="top" secondItem="O5K-4i-z6g" secondAttribute="bottom" constant="5" id="oCY-Ao-8bF"/>
693704
<constraint firstItem="Zkv-Tf-sdq" firstAttribute="top" secondItem="Um0-zQ-09O" secondAttribute="bottom" constant="35" id="oan-Z5-mK3"/>
705+
<constraint firstItem="coU-tR-Iyy" firstAttribute="centerY" secondItem="ptj-Cb-LDq" secondAttribute="centerY" id="rN7-rQ-Q8B"/>
694706
<constraint firstItem="NbS-C3-WfY" firstAttribute="top" secondItem="wyZ-eU-XEt" secondAttribute="top" constant="20" id="rsF-no-xAd"/>
695707
<constraint firstItem="O5K-4i-z6g" firstAttribute="top" secondItem="PV7-TD-diE" secondAttribute="bottom" constant="35" id="wss-bT-SAy"/>
696708
</constraints>
@@ -748,10 +760,11 @@ Gw
748760
</customObject>
749761
<customObject id="f4z-Qu-43g" customClass="BuildManager" customModule="BuildTimeAnalyzer" customModuleProvider="target"/>
750762
</objects>
751-
<point key="canvasLocation" x="258" y="786"/>
763+
<point key="canvasLocation" x="257.5" y="785.5"/>
752764
</scene>
753765
</scenes>
754766
<resources>
767+
<image name="NSFollowLinkFreestandingTemplate" width="14" height="14"/>
755768
<image name="NSGoLeftTemplate" width="9" height="12"/>
756769
<image name="ScreenShot" width="616" height="69"/>
757770
</resources>

BuildTimeAnalyzer/ViewController.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ class ViewController: NSViewController {
145145
NSPasteboard.general().writeObjects(["-Xfrontend -debug-time-function-bodies" as NSPasteboardWriting])
146146
}
147147

148+
@IBAction func visitDerivedData(_ sender: AnyObject) {
149+
150+
let path = self.derivedDataTextField.stringValue
151+
152+
NSWorkspace.shared().openFile(path)
153+
154+
}
155+
156+
148157
@IBAction func cancelButtonClicked(_ sender: AnyObject) {
149158
processor.shouldCancel = true
150159
}

0 commit comments

Comments
 (0)