Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
112 additions
and
18 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="15505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="pWa-Qg-gE8"> | |||
<dependencies> | |||
<deployment identifier="macosx"/> | |||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15505"/> | |||
</dependencies> | |||
<scenes> | |||
<!--Window Controller--> | |||
<scene sceneID="lqC-Y3-iGO"> | |||
<objects> | |||
<windowController id="pWa-Qg-gE8" customClass="ConfiguraionWindowController" customModule="Gureum" customModuleProvider="target" sceneMemberID="viewController"> | |||
<window key="window" title="구름 환경설정" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="66I-Xz-bUA"> | |||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/> | |||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> | |||
<rect key="contentRect" x="245" y="301" width="480" height="270"/> | |||
<rect key="screenRect" x="0.0" y="0.0" width="1680" height="1027"/> | |||
<connections> | |||
<outlet property="delegate" destination="pWa-Qg-gE8" id="aoC-1O-t14"/> | |||
</connections> | |||
</window> | |||
<connections> | |||
<segue destination="eDV-rs-6D0" kind="relationship" relationship="window.shadowedContentViewController" id="vdX-Ok-Cxc"/> | |||
</connections> | |||
</windowController> | |||
<customObject id="qIu-Nc-pzg" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> | |||
</objects> | |||
<point key="canvasLocation" x="-48" y="70"/> | |||
</scene> | |||
<!--Preference View Controller--> | |||
<scene sceneID="bc9-Ml-T2f"> | |||
<objects> | |||
<viewController id="eDV-rs-6D0" customClass="PreferenceViewController" customModule="Gureum" customModuleProvider="target" sceneMemberID="viewController"/> | |||
<customObject id="Z4u-jb-X27" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> | |||
</objects> | |||
<point key="canvasLocation" x="567" y="70"/> | |||
</scene> | |||
</scenes> | |||
</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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
// | |||
// ConfigurationWindow.swift | |||
// OSX | |||
// | |||
// Created by Jeong YunWon on 2019/11/03. | |||
// Copyright © 2019 youknowone.org. All rights reserved. | |||
// | |||
|
|||
import Cocoa | |||
import Foundation | |||
|
|||
class ConfiguraionWindowController: NSWindowController {} | |||
|
|||
class PreferenceViewController: NSViewController { | |||
private let _isAtLeast10_15 = ProcessInfo().isOperatingSystemAtLeast(OperatingSystemVersion(majorVersion: 10, minorVersion: 15, patchVersion: 0)) | |||
|
|||
override func loadView() { | |||
let path = Bundle.main.path(forResource: "Preferences", ofType: "prefPane") | |||
let bundle = NSPrefPaneBundle(path: path)! | |||
assert(bundle.bundle != nil) | |||
assert(bundle.bundle.principalClass != nil) | |||
if _isAtLeast10_15 { | |||
let pane = NSPreferencePane(bundle: bundle.bundle) | |||
pane.loadMainView() | |||
view = pane.mainView | |||
} else { | |||
let loaded = bundle.instantiatePrefPaneObject() | |||
assert(loaded) | |||
let pane = bundle.prefPaneObject()! | |||
view = pane.mainView | |||
} | |||
} | |||
} |
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
File renamed without changes.
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