• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-cqtcocoa誰得pythonphprubygameguibathyscaphec翻訳計画中(planning stage)omegatframeworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

macOSのスクリーンショットの保存場所を変更するメニュバーエクストラ


Commit MetaInfo

Revision65ef6092b49609bcb83705f62f6d55cfb2536c05 (tree)
Time2017-11-04 23:50:16
Authormasakih <masakih@user...>
Commitermasakih

Log Message

シングルトンにした

Change Summary

Incremental Difference

--- a/GoInto/Screenshot.swift
+++ b/GoInto/Screenshot.swift
@@ -17,6 +17,8 @@ class Screenshot {
1717
1818 static let shared = Screenshot()
1919
20+ private init() {}
21+
2022 var location: URL {
2123 get { return screencaptureAttribute(.location).map { URL(fileURLWithPath: $0) } ?? desktopURL() }
2224 set { setScreencaptureAttribute(newValue.path, for: .location) }