Skip to content

Commit cabea92

Browse files
"Users projects can be sorted automatically, [#Finishes #89761422]"
1 parent 66d4b7b commit cabea92

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Harbor/PreferencesPaneWindow.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ class PreferencesPaneWindow: NSWindowController, NSWindowDelegate {
2020
@IBOutlet weak var refreshRateLabel: NSTextField!
2121
@IBOutlet weak var projectColumn: NSTableColumn!
2222
@IBOutlet weak var followColumn: NSTableColumn!
23+
@IBOutlet weak var tableView: NSTableView!
2324

2425
override func windowDidLoad() {
2526
super.windowDidLoad()
2627
var bariolBold: NSFont = NSFont (name: "Bariol-Bold", size: 15)!
2728
accountNameLabel.font = bariolBold
2829
apiKeyLabel.font = bariolBold
2930
refreshRateLabel.font = bariolBold
30-
31+
let sortDescriptor = NSSortDescriptor(key: "repositoryName", ascending: true)
32+
tableView.sortDescriptors = [sortDescriptor]
3133
}
3234

3335
func windowWillClose(notification: NSNotification!) {

Harbor/PreferencesPaneWindow.xib

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6254" systemVersion="14C81f" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6751" systemVersion="14D105g" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6254"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6751"/>
55
</dependencies>
66
<objects>
77
<customObject id="-2" userLabel="File's Owner" customClass="PreferencesPaneWindow" customModule="Harbor" customModuleProvider="target">
@@ -13,6 +13,7 @@
1313
<outlet property="followColumn" destination="ZeP-Wh-bvv" id="omC-pA-qFP"/>
1414
<outlet property="projectColumn" destination="zuL-pq-dT1" id="vHn-hT-Nbg"/>
1515
<outlet property="refreshRateLabel" destination="yLL-dq-3xx" id="D9d-4w-hCO"/>
16+
<outlet property="tableView" destination="Kea-yV-eGP" id="PAo-pq-3YQ"/>
1617
<outlet property="window" destination="F0z-JX-Cv5" id="z9a-ct-AjW"/>
1718
</connections>
1819
</customObject>
@@ -22,7 +23,7 @@
2223
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" texturedBackground="YES"/>
2324
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
2425
<rect key="contentRect" x="196" y="240" width="587" height="378"/>
25-
<rect key="screenRect" x="0.0" y="0.0" width="1280" height="777"/>
26+
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
2627
<view key="contentView" id="se5-gp-TjO">
2728
<rect key="frame" x="0.0" y="0.0" width="587" height="378"/>
2829
<autoresizingMask key="autoresizingMask"/>

0 commit comments

Comments
 (0)