• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

SWFファイル内の画像を表示/書き出しするGUIツール


Commit MetaInfo

Revision9a13939d4dfd017378c32672aef570f468f5e2c8 (tree)
Zeit2016-10-02 13:48:12
Autormasakih <masakih@user...>
Commitermasakih

Log Message

HMTemporaryDirectoryをstructに変更

Ändern Zusammenfassung

Diff

--- a/KoreNoKaraSu/HMSwfDocument.swift
+++ b/KoreNoKaraSu/HMSwfDocument.swift
@@ -80,7 +80,7 @@ class HMSwfDocument: NSDocument {
8080 }
8181
8282 override func close() {
83- temporaryDirectory = nil
83+ temporaryDirectory?.cleanUp()
8484 }
8585
8686 func actionTarget() -> HMSwfImage? {
--- a/KoreNoKaraSu/HMTemporaryDirectory.swift
+++ b/KoreNoKaraSu/HMTemporaryDirectory.swift
@@ -12,7 +12,7 @@ enum HMTemporaryDirectoryError : Error {
1212 case CoanNotCreateDirectory
1313 }
1414
15-class HMTemporaryDirectory: NSObject {
15+struct HMTemporaryDirectory {
1616 let url: URL
1717
1818 init(name: String) throws {
@@ -32,7 +32,7 @@ class HMTemporaryDirectory: NSObject {
3232 }
3333 }
3434
35- deinit {
35+ func cleanUp() {
3636 do {
3737 try FileManager().removeItem(at: url)
3838 } catch {