-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed version back to 3.1; added better about window with history; …
…changed override script requirments to be owned by _securityagent and be 700
- Loading branch information
Showing
35 changed files
with
705 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> | ||
<dependencies> | ||
<deployment identifier="macosx"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21701"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<customObject id="-2" userLabel="File's Owner" customClass="AboutWindowController" customModule="XCreds" customModuleProvider="target"> | ||
<connections> | ||
<outlet property="aboutTextView" destination="HTA-3B-1DF" id="19t-VL-p6y"/> | ||
<outlet property="window" destination="e3r-XM-xJP" id="3Kl-qd-Sux"/> | ||
</connections> | ||
</customObject> | ||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> | ||
<customObject id="-3" userLabel="Application" customClass="NSObject"/> | ||
<userDefaultsController representsSharedInstance="YES" id="5Ar-2a-lNk"/> | ||
<window title="About" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" restorable="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="e3r-XM-xJP"> | ||
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/> | ||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> | ||
<rect key="contentRect" x="560" y="551" width="915" height="564"/> | ||
<rect key="screenRect" x="0.0" y="0.0" width="3440" height="1415"/> | ||
<view key="contentView" wantsLayer="YES" id="ZbF-tC-vpZ"> | ||
<rect key="frame" x="0.0" y="0.0" width="915" height="564"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<subviews> | ||
<scrollView borderType="none" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bSr-fP-G7u"> | ||
<rect key="frame" x="20" y="20" width="875" height="524"/> | ||
<clipView key="contentView" drawsBackground="NO" id="ca1-PV-x7f"> | ||
<rect key="frame" x="0.0" y="0.0" width="875" height="524"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<textView wantsLayer="YES" editable="NO" importsGraphics="NO" richText="NO" verticallyResizable="YES" allowsCharacterPickerTouchBarItem="NO" textCompletion="NO" id="HTA-3B-1DF"> | ||
<rect key="frame" x="0.0" y="0.0" width="875" height="524"/> | ||
<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="875" height="524"/> | ||
<size key="maxSize" width="875" height="10000000"/> | ||
<attributedString key="textStorage"> | ||
<fragment content="asdffd"> | ||
<attributes> | ||
<color key="NSColor" name="textColor" catalog="System" colorSpace="catalog"/> | ||
<font key="NSFont" size="13" name="CourierNewPSMT"/> | ||
<font key="NSOriginalFont" size="12" name="Helvetica"/> | ||
<paragraphStyle key="NSParagraphStyle" alignment="natural" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/> | ||
</attributes> | ||
</fragment> | ||
</attributedString> | ||
<color key="insertionPointColor" name="textColor" catalog="System" colorSpace="catalog"/> | ||
</textView> | ||
</subviews> | ||
</clipView> | ||
<constraints> | ||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="358" id="3lx-YV-0rq"/> | ||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="673" id="ttd-79-b3Y"/> | ||
</constraints> | ||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="YH2-jc-few"> | ||
<rect key="frame" x="-100" y="-100" width="240" height="16"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
</scroller> | ||
<scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="Nxp-18-SHh"> | ||
<rect key="frame" x="859" y="0.0" width="16" height="524"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
</scroller> | ||
</scrollView> | ||
</subviews> | ||
<constraints> | ||
<constraint firstAttribute="bottom" secondItem="bSr-fP-G7u" secondAttribute="bottom" constant="20" id="MQN-fC-UsZ"/> | ||
<constraint firstItem="bSr-fP-G7u" firstAttribute="top" secondItem="ZbF-tC-vpZ" secondAttribute="top" constant="20" id="WLh-Sx-3YW"/> | ||
<constraint firstAttribute="trailing" secondItem="bSr-fP-G7u" secondAttribute="trailing" constant="20" id="swY-up-ZR5"/> | ||
<constraint firstItem="bSr-fP-G7u" firstAttribute="leading" secondItem="ZbF-tC-vpZ" secondAttribute="leading" constant="20" id="w0d-4V-3Nc"/> | ||
</constraints> | ||
</view> | ||
<connections> | ||
<outlet property="delegate" destination="-2" id="gvt-4q-n77"/> | ||
</connections> | ||
<point key="canvasLocation" x="401.5" y="387"/> | ||
</window> | ||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="dXE-Xt-nIV"> | ||
<rect key="frame" x="0.0" y="0.0" width="90" height="16"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<textFieldCell key="cell" lineBreakMode="clipping" title="DiscoveryURL" id="1hp-g2-T6a"> | ||
<font key="font" usesAppearanceFont="YES"/> | ||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> | ||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> | ||
</textFieldCell> | ||
<point key="canvasLocation" x="49" y="340"/> | ||
</textField> | ||
</objects> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// AboutWindowController.swift | ||
// xCreds | ||
// | ||
// Created by Timothy Perfitt on 4/5/22. | ||
// | ||
|
||
import Foundation | ||
import Cocoa | ||
|
||
class AboutWindowController: NSWindowController { | ||
|
||
|
||
@IBOutlet weak var aboutTextView:NSTextView! | ||
@objc override var windowNibName: NSNib.Name { | ||
return NSNib.Name("AboutWindow") | ||
} | ||
|
||
override func awakeFromNib() { | ||
|
||
let infoPlist = Bundle.main.infoDictionary | ||
if let infoPlist = infoPlist { | ||
let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String | ||
|
||
let build = infoPlist["CFBundleVersion"] as? String | ||
|
||
let historyPath = Bundle.main.path(forResource: "History", ofType: "md") | ||
let creditsPath = Bundle.main.path(forResource: "Credits", ofType: "txt") | ||
if let historyPath = historyPath, let historyString = try? String(contentsOfFile: historyPath, encoding: .utf8), let creditsPath = creditsPath ,let creditsString = try? String(contentsOfFile: creditsPath, encoding: .utf8), let build = build, let appVersion = appVersion { | ||
|
||
aboutTextView.string="XCreds\nCopyright Twocanoes Software, Inc.\nVersion \(appVersion) (\(build))\n\n"+creditsString + historyString | ||
|
||
} | ||
} | ||
|
||
} | ||
|
||
// @IBAction func clearTokensClicked(_ sender: Any) { | ||
// let keychainUtil = KeychainUtil() | ||
// let _ = keychainUtil.findAndDelete(serviceName:"xcreds",accountName:PrefKeys.accessToken.rawValue) | ||
// let _ = keychainUtil.findAndDelete(serviceName:"xcreds",accountName:PrefKeys.idToken.rawValue) | ||
// let _ = keychainUtil.findAndDelete(serviceName:"xcreds",accountName:PrefKeys.refreshToken.rawValue) | ||
// | ||
// | ||
// mainMenu.signedIn=false | ||
// mainMenu.buildMenu() | ||
// } | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.