From cfb8c7201e82b8e8973a29b9e84c4a3db551ff12 Mon Sep 17 00:00:00 2001 From: JakobS1n Date: Sat, 9 Apr 2016 18:11:30 +0200 Subject: Initial Commit --- source/Jakobs Tools/128x128.png | Bin 0 -> 6393 bytes source/Jakobs Tools/16x16.png | Bin 0 -> 719 bytes source/Jakobs Tools/24x24.png | Bin 0 -> 1126 bytes source/Jakobs Tools/256x256.png | Bin 0 -> 14031 bytes source/Jakobs Tools/32x32.png | Bin 0 -> 1502 bytes source/Jakobs Tools/48x48.png | Bin 0 -> 2346 bytes source/Jakobs Tools/512x512.png | Bin 0 -> 30353 bytes source/Jakobs Tools/64x64.png | Bin 0 -> 3208 bytes source/Jakobs Tools/96x96.png | Bin 0 -> 4873 bytes source/Jakobs Tools/AppDelegate.swift | 179 ++++++ .../AppIcon.appiconset/Contents.json | 58 ++ source/Jakobs Tools/Assets.xcassets/Contents.json | 6 + .../Assets.xcassets/icon.appiconset/128x128.png | Bin 0 -> 6393 bytes .../Assets.xcassets/icon.appiconset/16x16.png | Bin 0 -> 719 bytes .../Assets.xcassets/icon.appiconset/24x24.png | Bin 0 -> 1126 bytes .../Assets.xcassets/icon.appiconset/256x256.png | Bin 0 -> 14031 bytes .../Assets.xcassets/icon.appiconset/32x32.png | Bin 0 -> 1502 bytes .../Assets.xcassets/icon.appiconset/48x48.png | Bin 0 -> 2346 bytes .../Assets.xcassets/icon.appiconset/512x512.png | Bin 0 -> 30353 bytes .../Assets.xcassets/icon.appiconset/Contents.json | 65 ++ .../imgHidden.imageset/Contents.json | 23 + .../imgHidden.imageset/imgHidden.png | Bin 0 -> 3390 bytes .../imgHiddenDark.imageset/Contents.json | 23 + .../imgHiddenDark.imageset/imgHiddenDark.png | Bin 0 -> 3391 bytes .../Assets.xcassets/imgShow.imageset/Contents.json | 23 + .../Assets.xcassets/imgShow.imageset/imgShow.png | Bin 0 -> 3316 bytes .../imgShowDark.imageset/Contents.json | 23 + .../imgShowDark.imageset/imgShowDark.png | Bin 0 -> 3327 bytes source/Jakobs Tools/Base.lproj/MainMenu.xib | 681 +++++++++++++++++++++ source/Jakobs Tools/Info.plist | 34 + source/Jakobs Tools/imgHidden.png | Bin 0 -> 3390 bytes source/Jakobs Tools/imgHiddenDark.png | Bin 0 -> 3391 bytes source/Jakobs Tools/imgShow.png | Bin 0 -> 3316 bytes source/Jakobs Tools/imgShowDark.png | Bin 0 -> 3327 bytes source/Jakobs Tools/logo.png | Bin 0 -> 29847 bytes source/Jakobs ToolsUITests/Info.plist | 24 + .../Jakobs ToolsUITests/Jakobs_ToolsUITests.swift | 36 ++ source/fileShow.xcodeproj/project.pbxproj | 567 +++++++++++++++++ .../project.xcworkspace/contents.xcworkspacedata | 7 + .../UserInterfaceState.xcuserstate | Bin 0 -> 51771 bytes .../xcdebugger/Breakpoints_v2.xcbkptlist | 103 ++++ .../xcschemes/Jakobs Tools.xcscheme | 111 ++++ .../xcschemes/xcschememanagement.plist | 32 + source/fileShow/Info.plist | 24 + source/fileShow/Jakobs_ToolsTests.swift | 36 ++ 45 files changed, 2055 insertions(+) create mode 100755 source/Jakobs Tools/128x128.png create mode 100755 source/Jakobs Tools/16x16.png create mode 100755 source/Jakobs Tools/24x24.png create mode 100755 source/Jakobs Tools/256x256.png create mode 100755 source/Jakobs Tools/32x32.png create mode 100755 source/Jakobs Tools/48x48.png create mode 100755 source/Jakobs Tools/512x512.png create mode 100755 source/Jakobs Tools/64x64.png create mode 100755 source/Jakobs Tools/96x96.png create mode 100644 source/Jakobs Tools/AppDelegate.swift create mode 100644 source/Jakobs Tools/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 source/Jakobs Tools/Assets.xcassets/Contents.json create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/128x128.png create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/16x16.png create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/24x24.png create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/256x256.png create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/32x32.png create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/48x48.png create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/512x512.png create mode 100644 source/Jakobs Tools/Assets.xcassets/icon.appiconset/Contents.json create mode 100644 source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/Contents.json create mode 100644 source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/imgHidden.png create mode 100644 source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/Contents.json create mode 100644 source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/imgHiddenDark.png create mode 100644 source/Jakobs Tools/Assets.xcassets/imgShow.imageset/Contents.json create mode 100644 source/Jakobs Tools/Assets.xcassets/imgShow.imageset/imgShow.png create mode 100644 source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/Contents.json create mode 100644 source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/imgShowDark.png create mode 100644 source/Jakobs Tools/Base.lproj/MainMenu.xib create mode 100644 source/Jakobs Tools/Info.plist create mode 100644 source/Jakobs Tools/imgHidden.png create mode 100644 source/Jakobs Tools/imgHiddenDark.png create mode 100644 source/Jakobs Tools/imgShow.png create mode 100644 source/Jakobs Tools/imgShowDark.png create mode 100644 source/Jakobs Tools/logo.png create mode 100644 source/Jakobs ToolsUITests/Info.plist create mode 100644 source/Jakobs ToolsUITests/Jakobs_ToolsUITests.swift create mode 100644 source/fileShow.xcodeproj/project.pbxproj create mode 100644 source/fileShow.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 source/fileShow.xcodeproj/project.xcworkspace/xcuserdata/jakob.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist create mode 100644 source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/Jakobs Tools.xcscheme create mode 100644 source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 source/fileShow/Info.plist create mode 100644 source/fileShow/Jakobs_ToolsTests.swift (limited to 'source') diff --git a/source/Jakobs Tools/128x128.png b/source/Jakobs Tools/128x128.png new file mode 100755 index 0000000..44b2f62 Binary files /dev/null and b/source/Jakobs Tools/128x128.png differ diff --git a/source/Jakobs Tools/16x16.png b/source/Jakobs Tools/16x16.png new file mode 100755 index 0000000..9479962 Binary files /dev/null and b/source/Jakobs Tools/16x16.png differ diff --git a/source/Jakobs Tools/24x24.png b/source/Jakobs Tools/24x24.png new file mode 100755 index 0000000..1d6f1cc Binary files /dev/null and b/source/Jakobs Tools/24x24.png differ diff --git a/source/Jakobs Tools/256x256.png b/source/Jakobs Tools/256x256.png new file mode 100755 index 0000000..56911a0 Binary files /dev/null and b/source/Jakobs Tools/256x256.png differ diff --git a/source/Jakobs Tools/32x32.png b/source/Jakobs Tools/32x32.png new file mode 100755 index 0000000..45963ba Binary files /dev/null and b/source/Jakobs Tools/32x32.png differ diff --git a/source/Jakobs Tools/48x48.png b/source/Jakobs Tools/48x48.png new file mode 100755 index 0000000..14bc207 Binary files /dev/null and b/source/Jakobs Tools/48x48.png differ diff --git a/source/Jakobs Tools/512x512.png b/source/Jakobs Tools/512x512.png new file mode 100755 index 0000000..1ca67e3 Binary files /dev/null and b/source/Jakobs Tools/512x512.png differ diff --git a/source/Jakobs Tools/64x64.png b/source/Jakobs Tools/64x64.png new file mode 100755 index 0000000..999cdf5 Binary files /dev/null and b/source/Jakobs Tools/64x64.png differ diff --git a/source/Jakobs Tools/96x96.png b/source/Jakobs Tools/96x96.png new file mode 100755 index 0000000..9f020b3 Binary files /dev/null and b/source/Jakobs Tools/96x96.png differ diff --git a/source/Jakobs Tools/AppDelegate.swift b/source/Jakobs Tools/AppDelegate.swift new file mode 100644 index 0000000..d8ec71e --- /dev/null +++ b/source/Jakobs Tools/AppDelegate.swift @@ -0,0 +1,179 @@ +// +// AppDelegate.swift +// Jakobs Tools +// +// Created by Jakob Stendahl on 20/02/16. +// Copyright © 2016 Jakob Stendahl. All rights reserved. +// + +import Cocoa + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + + @IBOutlet weak var window: NSWindow! + + var statusItem = NSStatusItem?() + var button = NSStatusBarButton?() + + var filesHiden = true + let appearance = NSUserDefaults.standardUserDefaults().stringForKey("AppleInterfaceStyle") ?? "Light" + + + func applicationDidFinishLaunching(aNotification: NSNotification) { + // Insert code here to initialize your app String { + + // Create a Task instance + let task = NSTask() + + // Set the task parameters + task.launchPath = "/usr/bin/env" + task.arguments = ["defaults", "read", "com.apple.finder", "AppleShowAllFiles"] + + // Create a Pipe and make the task + // put all the output there + let pipe = NSPipe() + task.standardOutput = pipe + + // Launch the task + task.launch() + + // Get the data + let data = pipe.fileHandleForReading.readDataToEndOfFile() + let output = NSString(data: data, encoding: NSUTF8StringEncoding) + + return(output!) as String + } + + func toggleFilesVisible(state : NSString) { + + // Create a Task instance + let task = NSTask() + + // Set the task parameters + task.launchPath = "/usr/bin/env" + if(state == "SHOW") { + task.arguments = ["defaults", "write", "com.apple.finder", "AppleShowAllFiles", "YES"] + print("SHOW") + } + if(state == "HIDE") { + task.arguments = ["defaults", "write", "com.apple.finder", "AppleShowAllFiles", "NO"] + print("HIDE") + } + + // Create a Pipe and make the task + // put all the output there + let pipe = NSPipe() + task.standardOutput = pipe + + // Launch the task + task.launch() + + // Get the data + let data = pipe.fileHandleForReading.readDataToEndOfFile() + let output = NSString(data: data, encoding: NSUTF8StringEncoding) + + print("State changed: ") + print(output!) + + } + + func refreshFinder() { + + // Create a Task instance + let task = NSTask() + + // Set the task parameters + task.launchPath = "/usr/bin/env" + task.arguments = ["killall", "Finder", "/System/Library/CoreServices/Finder.app"] + + // Create a Pipe and make the task + // put all the output there + let pipe = NSPipe() + task.standardOutput = pipe + + // Launch the task + task.launch() + + // Get the data + let data = pipe.fileHandleForReading.readDataToEndOfFile() + let output = NSString(data: data, encoding: NSUTF8StringEncoding) + + print(output!) + } + + func pressed(sender : AnyObject) { + + let currentStateOutput = CheckCurrentState() + let currentState = currentStateOutput.characters.first + print(currentState) + + if (currentState == "Y") { + print("YAY") + filesHiden = false + toggleFilesVisible("HIDE") + refreshFinder() + setStatusImage("HIDE") + } + if currentState == "N" { + print("NAAY") + filesHiden = true + toggleFilesVisible("SHOW") + refreshFinder() + setStatusImage("SHOW") + } + print("POOF") + + } + + +} + diff --git a/source/Jakobs Tools/Assets.xcassets/AppIcon.appiconset/Contents.json b/source/Jakobs Tools/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2db2b1c --- /dev/null +++ b/source/Jakobs Tools/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,58 @@ +{ + "images" : [ + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/source/Jakobs Tools/Assets.xcassets/Contents.json b/source/Jakobs Tools/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/source/Jakobs Tools/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/128x128.png b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/128x128.png new file mode 100644 index 0000000..44b2f62 Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/128x128.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/16x16.png b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/16x16.png new file mode 100644 index 0000000..9479962 Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/16x16.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/24x24.png b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/24x24.png new file mode 100644 index 0000000..1d6f1cc Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/24x24.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/256x256.png b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/256x256.png new file mode 100644 index 0000000..56911a0 Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/256x256.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/32x32.png b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/32x32.png new file mode 100644 index 0000000..45963ba Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/32x32.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/48x48.png b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/48x48.png new file mode 100644 index 0000000..14bc207 Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/48x48.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/512x512.png b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/512x512.png new file mode 100644 index 0000000..1ca67e3 Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/512x512.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/icon.appiconset/Contents.json b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/Contents.json new file mode 100644 index 0000000..398a4c5 --- /dev/null +++ b/source/Jakobs Tools/Assets.xcassets/icon.appiconset/Contents.json @@ -0,0 +1,65 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "16x16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "24x24.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "32x32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "48x48.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "128x128.png", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "256x256.png", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "512x512.png", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/Contents.json b/source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/Contents.json new file mode 100644 index 0000000..2c248f4 --- /dev/null +++ b/source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "mac" + }, + { + "idiom" : "mac", + "scale" : "1x" + }, + { + "idiom" : "mac", + "filename" : "imgHidden.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "template-rendering-intent" : "template" + } +} \ No newline at end of file diff --git a/source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/imgHidden.png b/source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/imgHidden.png new file mode 100644 index 0000000..dad5ece Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/imgHidden.imageset/imgHidden.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/Contents.json b/source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/Contents.json new file mode 100644 index 0000000..ff3ae16 --- /dev/null +++ b/source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "mac" + }, + { + "idiom" : "mac", + "scale" : "1x" + }, + { + "idiom" : "mac", + "filename" : "imgHiddenDark.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "template-rendering-intent" : "template" + } +} \ No newline at end of file diff --git a/source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/imgHiddenDark.png b/source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/imgHiddenDark.png new file mode 100644 index 0000000..cd3ac3b Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/imgHiddenDark.imageset/imgHiddenDark.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/imgShow.imageset/Contents.json b/source/Jakobs Tools/Assets.xcassets/imgShow.imageset/Contents.json new file mode 100644 index 0000000..4983028 --- /dev/null +++ b/source/Jakobs Tools/Assets.xcassets/imgShow.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "mac" + }, + { + "idiom" : "mac", + "scale" : "1x" + }, + { + "idiom" : "mac", + "filename" : "imgShow.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "template-rendering-intent" : "template" + } +} \ No newline at end of file diff --git a/source/Jakobs Tools/Assets.xcassets/imgShow.imageset/imgShow.png b/source/Jakobs Tools/Assets.xcassets/imgShow.imageset/imgShow.png new file mode 100644 index 0000000..1737c2f Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/imgShow.imageset/imgShow.png differ diff --git a/source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/Contents.json b/source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/Contents.json new file mode 100644 index 0000000..64994be --- /dev/null +++ b/source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "mac" + }, + { + "idiom" : "mac", + "scale" : "1x" + }, + { + "idiom" : "mac", + "filename" : "imgShowDark.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "template-rendering-intent" : "template" + } +} \ No newline at end of file diff --git a/source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/imgShowDark.png b/source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/imgShowDark.png new file mode 100644 index 0000000..f121a43 Binary files /dev/null and b/source/Jakobs Tools/Assets.xcassets/imgShowDark.imageset/imgShowDark.png differ diff --git a/source/Jakobs Tools/Base.lproj/MainMenu.xib b/source/Jakobs Tools/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..4b0cf90 --- /dev/null +++ b/source/Jakobs Tools/Base.lproj/MainMenu.xib @@ -0,0 +1,681 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/Jakobs Tools/Info.plist b/source/Jakobs Tools/Info.plist new file mode 100644 index 0000000..74aa4a5 --- /dev/null +++ b/source/Jakobs Tools/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.1 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + LSUIElement + + NSHumanReadableCopyright + Copyright © 2016 Jakob Stendahl. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/source/Jakobs Tools/imgHidden.png b/source/Jakobs Tools/imgHidden.png new file mode 100644 index 0000000..dad5ece Binary files /dev/null and b/source/Jakobs Tools/imgHidden.png differ diff --git a/source/Jakobs Tools/imgHiddenDark.png b/source/Jakobs Tools/imgHiddenDark.png new file mode 100644 index 0000000..cd3ac3b Binary files /dev/null and b/source/Jakobs Tools/imgHiddenDark.png differ diff --git a/source/Jakobs Tools/imgShow.png b/source/Jakobs Tools/imgShow.png new file mode 100644 index 0000000..1737c2f Binary files /dev/null and b/source/Jakobs Tools/imgShow.png differ diff --git a/source/Jakobs Tools/imgShowDark.png b/source/Jakobs Tools/imgShowDark.png new file mode 100644 index 0000000..f121a43 Binary files /dev/null and b/source/Jakobs Tools/imgShowDark.png differ diff --git a/source/Jakobs Tools/logo.png b/source/Jakobs Tools/logo.png new file mode 100644 index 0000000..4b212c2 Binary files /dev/null and b/source/Jakobs Tools/logo.png differ diff --git a/source/Jakobs ToolsUITests/Info.plist b/source/Jakobs ToolsUITests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/source/Jakobs ToolsUITests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/source/Jakobs ToolsUITests/Jakobs_ToolsUITests.swift b/source/Jakobs ToolsUITests/Jakobs_ToolsUITests.swift new file mode 100644 index 0000000..3c61686 --- /dev/null +++ b/source/Jakobs ToolsUITests/Jakobs_ToolsUITests.swift @@ -0,0 +1,36 @@ +// +// Jakobs_ToolsUITests.swift +// Jakobs ToolsUITests +// +// Created by Jakob Stendahl on 20/02/16. +// Copyright © 2016 Jakob Stendahl. All rights reserved. +// + +import XCTest + +class Jakobs_ToolsUITests: XCTestCase { + + override func setUp() { + super.setUp() + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + XCUIApplication().launch() + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + +} diff --git a/source/fileShow.xcodeproj/project.pbxproj b/source/fileShow.xcodeproj/project.pbxproj new file mode 100644 index 0000000..ad35bb7 --- /dev/null +++ b/source/fileShow.xcodeproj/project.pbxproj @@ -0,0 +1,567 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 367D8D6D1CABFBA20035F437 /* logo.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D6C1CABFBA20035F437 /* logo.png */; }; + 367D8D8C1CAC04040035F437 /* imgHidden.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D881CAC04040035F437 /* imgHidden.png */; }; + 367D8D8E1CAC04040035F437 /* imgShow.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D8A1CAC04040035F437 /* imgShow.png */; }; + 367D8D951CAC15AE0035F437 /* imgHiddenDark.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D941CAC15AE0035F437 /* imgHiddenDark.png */; }; + 367D8D971CAC15C40035F437 /* imgShowDark.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D961CAC15C40035F437 /* imgShowDark.png */; }; + 367D8DA21CAC17A00035F437 /* 16x16.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D991CAC17A00035F437 /* 16x16.png */; }; + 367D8DA31CAC17A00035F437 /* 24x24.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D9A1CAC17A00035F437 /* 24x24.png */; }; + 367D8DA41CAC17A00035F437 /* 32x32.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D9B1CAC17A00035F437 /* 32x32.png */; }; + 367D8DA51CAC17A00035F437 /* 48x48.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D9C1CAC17A00035F437 /* 48x48.png */; }; + 367D8DA61CAC17A00035F437 /* 64x64.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D9D1CAC17A00035F437 /* 64x64.png */; }; + 367D8DA71CAC17A00035F437 /* 96x96.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D9E1CAC17A00035F437 /* 96x96.png */; }; + 367D8DA81CAC17A00035F437 /* 128x128.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8D9F1CAC17A00035F437 /* 128x128.png */; }; + 367D8DA91CAC17A00035F437 /* 256x256.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8DA01CAC17A00035F437 /* 256x256.png */; }; + 367D8DAA1CAC17A00035F437 /* 512x512.png in Resources */ = {isa = PBXBuildFile; fileRef = 367D8DA11CAC17A00035F437 /* 512x512.png */; }; + 36DCAAE91C78731000753749 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36DCAAE81C78731000753749 /* AppDelegate.swift */; }; + 36DCAAEB1C78731000753749 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 36DCAAEA1C78731000753749 /* Assets.xcassets */; }; + 36DCAAEE1C78731000753749 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 36DCAAEC1C78731000753749 /* MainMenu.xib */; }; + 36DCAAF91C78731000753749 /* Jakobs_ToolsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36DCAAF81C78731000753749 /* Jakobs_ToolsTests.swift */; }; + 36DCAB041C78731000753749 /* Jakobs_ToolsUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36DCAB031C78731000753749 /* Jakobs_ToolsUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 36DCAAF51C78731000753749 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 36DCAADD1C78731000753749 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 36DCAAE41C78731000753749; + remoteInfo = "Jakobs Tools"; + }; + 36DCAB001C78731000753749 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 36DCAADD1C78731000753749 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 36DCAAE41C78731000753749; + remoteInfo = "Jakobs Tools"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 367D8D6C1CABFBA20035F437 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = ""; }; + 367D8D881CAC04040035F437 /* imgHidden.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = imgHidden.png; sourceTree = ""; }; + 367D8D8A1CAC04040035F437 /* imgShow.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = imgShow.png; sourceTree = ""; }; + 367D8D941CAC15AE0035F437 /* imgHiddenDark.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = imgHiddenDark.png; sourceTree = ""; }; + 367D8D961CAC15C40035F437 /* imgShowDark.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = imgShowDark.png; sourceTree = ""; }; + 367D8D991CAC17A00035F437 /* 16x16.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 16x16.png; sourceTree = ""; }; + 367D8D9A1CAC17A00035F437 /* 24x24.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 24x24.png; sourceTree = ""; }; + 367D8D9B1CAC17A00035F437 /* 32x32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 32x32.png; sourceTree = ""; }; + 367D8D9C1CAC17A00035F437 /* 48x48.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 48x48.png; sourceTree = ""; }; + 367D8D9D1CAC17A00035F437 /* 64x64.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 64x64.png; sourceTree = ""; }; + 367D8D9E1CAC17A00035F437 /* 96x96.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 96x96.png; sourceTree = ""; }; + 367D8D9F1CAC17A00035F437 /* 128x128.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 128x128.png; sourceTree = ""; }; + 367D8DA01CAC17A00035F437 /* 256x256.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 256x256.png; sourceTree = ""; }; + 367D8DA11CAC17A00035F437 /* 512x512.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 512x512.png; sourceTree = ""; }; + 36DCAAE51C78731000753749 /* fileShow.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = fileShow.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 36DCAAE81C78731000753749 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 36DCAAEA1C78731000753749 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 36DCAAED1C78731000753749 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 36DCAAEF1C78731000753749 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 36DCAAF41C78731000753749 /* fileShow.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = fileShow.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 36DCAAF81C78731000753749 /* Jakobs_ToolsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Jakobs_ToolsTests.swift; sourceTree = ""; }; + 36DCAAFA1C78731000753749 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 36DCAAFF1C78731000753749 /* fileShow.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = fileShow.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 36DCAB031C78731000753749 /* Jakobs_ToolsUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Jakobs_ToolsUITests.swift; sourceTree = ""; }; + 36DCAB051C78731000753749 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 36DCAAE21C78731000753749 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36DCAAF11C78731000753749 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36DCAAFC1C78731000753749 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 367D8D981CAC178B0035F437 /* icon */ = { + isa = PBXGroup; + children = ( + 367D8D6C1CABFBA20035F437 /* logo.png */, + 367D8D991CAC17A00035F437 /* 16x16.png */, + 367D8D9A1CAC17A00035F437 /* 24x24.png */, + 367D8D9B1CAC17A00035F437 /* 32x32.png */, + 367D8D9C1CAC17A00035F437 /* 48x48.png */, + 367D8D9D1CAC17A00035F437 /* 64x64.png */, + 367D8D9E1CAC17A00035F437 /* 96x96.png */, + 367D8D9F1CAC17A00035F437 /* 128x128.png */, + 367D8DA01CAC17A00035F437 /* 256x256.png */, + 367D8DA11CAC17A00035F437 /* 512x512.png */, + ); + name = icon; + sourceTree = ""; + }; + 36DCAADC1C78731000753749 = { + isa = PBXGroup; + children = ( + 36DCAAE71C78731000753749 /* Jakobs Tools */, + 36DCAAF71C78731000753749 /* Jakobs ToolsTests */, + 36DCAB021C78731000753749 /* Jakobs ToolsUITests */, + 36DCAAE61C78731000753749 /* Products */, + ); + sourceTree = ""; + }; + 36DCAAE61C78731000753749 /* Products */ = { + isa = PBXGroup; + children = ( + 36DCAAE51C78731000753749 /* fileShow.app */, + 36DCAAF41C78731000753749 /* fileShow.xctest */, + 36DCAAFF1C78731000753749 /* fileShow.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 36DCAAE71C78731000753749 /* Jakobs Tools */ = { + isa = PBXGroup; + children = ( + 367D8D981CAC178B0035F437 /* icon */, + 36DCAAE81C78731000753749 /* AppDelegate.swift */, + 36DCAAEA1C78731000753749 /* Assets.xcassets */, + 367D8D881CAC04040035F437 /* imgHidden.png */, + 367D8D8A1CAC04040035F437 /* imgShow.png */, + 367D8D941CAC15AE0035F437 /* imgHiddenDark.png */, + 367D8D961CAC15C40035F437 /* imgShowDark.png */, + 36DCAAEC1C78731000753749 /* MainMenu.xib */, + 36DCAAEF1C78731000753749 /* Info.plist */, + ); + path = "Jakobs Tools"; + sourceTree = ""; + }; + 36DCAAF71C78731000753749 /* Jakobs ToolsTests */ = { + isa = PBXGroup; + children = ( + 36DCAAF81C78731000753749 /* Jakobs_ToolsTests.swift */, + 36DCAAFA1C78731000753749 /* Info.plist */, + ); + path = "Jakobs ToolsTests"; + sourceTree = ""; + }; + 36DCAB021C78731000753749 /* Jakobs ToolsUITests */ = { + isa = PBXGroup; + children = ( + 36DCAB031C78731000753749 /* Jakobs_ToolsUITests.swift */, + 36DCAB051C78731000753749 /* Info.plist */, + ); + path = "Jakobs ToolsUITests"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 36DCAAE41C78731000753749 /* fileShow */ = { + isa = PBXNativeTarget; + buildConfigurationList = 36DCAB081C78731000753749 /* Build configuration list for PBXNativeTarget "fileShow" */; + buildPhases = ( + 36DCAAE11C78731000753749 /* Sources */, + 36DCAAE21C78731000753749 /* Frameworks */, + 36DCAAE31C78731000753749 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = fileShow; + productName = "Jakobs Tools"; + productReference = 36DCAAE51C78731000753749 /* fileShow.app */; + productType = "com.apple.product-type.application"; + }; + 36DCAAF31C78731000753749 /* fileShowTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 36DCAB0B1C78731000753749 /* Build configuration list for PBXNativeTarget "fileShowTests" */; + buildPhases = ( + 36DCAAF01C78731000753749 /* Sources */, + 36DCAAF11C78731000753749 /* Frameworks */, + 36DCAAF21C78731000753749 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 36DCAAF61C78731000753749 /* PBXTargetDependency */, + ); + name = fileShowTests; + productName = "Jakobs ToolsTests"; + productReference = 36DCAAF41C78731000753749 /* fileShow.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 36DCAAFE1C78731000753749 /* fileShowUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 36DCAB0E1C78731000753749 /* Build configuration list for PBXNativeTarget "fileShowUITests" */; + buildPhases = ( + 36DCAAFB1C78731000753749 /* Sources */, + 36DCAAFC1C78731000753749 /* Frameworks */, + 36DCAAFD1C78731000753749 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 36DCAB011C78731000753749 /* PBXTargetDependency */, + ); + name = fileShowUITests; + productName = "Jakobs ToolsUITests"; + productReference = 36DCAAFF1C78731000753749 /* fileShow.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 36DCAADD1C78731000753749 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0710; + ORGANIZATIONNAME = "Jakob Stendahl"; + TargetAttributes = { + 36DCAAE41C78731000753749 = { + CreatedOnToolsVersion = 7.1; + DevelopmentTeam = F2EX82V34C; + }; + 36DCAAF31C78731000753749 = { + CreatedOnToolsVersion = 7.1; + TestTargetID = 36DCAAE41C78731000753749; + }; + 36DCAAFE1C78731000753749 = { + CreatedOnToolsVersion = 7.1; + TestTargetID = 36DCAAE41C78731000753749; + }; + }; + }; + buildConfigurationList = 36DCAAE01C78731000753749 /* Build configuration list for PBXProject "fileShow" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 36DCAADC1C78731000753749; + productRefGroup = 36DCAAE61C78731000753749 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 36DCAAE41C78731000753749 /* fileShow */, + 36DCAAF31C78731000753749 /* fileShowTests */, + 36DCAAFE1C78731000753749 /* fileShowUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 36DCAAE31C78731000753749 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 367D8DA41CAC17A00035F437 /* 32x32.png in Resources */, + 367D8D971CAC15C40035F437 /* imgShowDark.png in Resources */, + 367D8DA81CAC17A00035F437 /* 128x128.png in Resources */, + 367D8D951CAC15AE0035F437 /* imgHiddenDark.png in Resources */, + 367D8DA21CAC17A00035F437 /* 16x16.png in Resources */, + 367D8DA61CAC17A00035F437 /* 64x64.png in Resources */, + 367D8DAA1CAC17A00035F437 /* 512x512.png in Resources */, + 367D8D8E1CAC04040035F437 /* imgShow.png in Resources */, + 367D8DA91CAC17A00035F437 /* 256x256.png in Resources */, + 367D8DA31CAC17A00035F437 /* 24x24.png in Resources */, + 367D8DA71CAC17A00035F437 /* 96x96.png in Resources */, + 36DCAAEB1C78731000753749 /* Assets.xcassets in Resources */, + 367D8D8C1CAC04040035F437 /* imgHidden.png in Resources */, + 367D8DA51CAC17A00035F437 /* 48x48.png in Resources */, + 367D8D6D1CABFBA20035F437 /* logo.png in Resources */, + 36DCAAEE1C78731000753749 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36DCAAF21C78731000753749 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36DCAAFD1C78731000753749 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 36DCAAE11C78731000753749 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 36DCAAE91C78731000753749 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36DCAAF01C78731000753749 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 36DCAAF91C78731000753749 /* Jakobs_ToolsTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 36DCAAFB1C78731000753749 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 36DCAB041C78731000753749 /* Jakobs_ToolsUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 36DCAAF61C78731000753749 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 36DCAAE41C78731000753749 /* fileShow */; + targetProxy = 36DCAAF51C78731000753749 /* PBXContainerItemProxy */; + }; + 36DCAB011C78731000753749 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 36DCAAE41C78731000753749 /* fileShow */; + targetProxy = 36DCAB001C78731000753749 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 36DCAAEC1C78731000753749 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 36DCAAED1C78731000753749 /* Base */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 36DCAB061C78731000753749 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 36DCAB071C78731000753749 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + 36DCAB091C78731000753749 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = icon; + CODE_SIGN_IDENTITY = "Developer ID Application"; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Jakobs Tools/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jakob.stendahl.fileShow; + PRODUCT_NAME = fileShow; + PROVISIONING_PROFILE = ""; + }; + name = Debug; + }; + 36DCAB0A1C78731000753749 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = icon; + CODE_SIGN_IDENTITY = "Developer ID Application"; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Jakobs Tools/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jakob.stendahl.fileShow; + PRODUCT_NAME = fileShow; + PROVISIONING_PROFILE = ""; + }; + name = Release; + }; + 36DCAB0C1C78731000753749 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Jakobs ToolsTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.jakob.stendahl.Jakobs-ToolsTests"; + PRODUCT_NAME = fileShow; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/fileShow.app/Contents/MacOS/fileShow"; + }; + name = Debug; + }; + 36DCAB0D1C78731000753749 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Jakobs ToolsTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.jakob.stendahl.Jakobs-ToolsTests"; + PRODUCT_NAME = fileShow; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/fileShow.app/Contents/MacOS/fileShow"; + }; + name = Release; + }; + 36DCAB0F1C78731000753749 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Jakobs ToolsUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.jakob.stendahl.Jakobs-ToolsUITests"; + PRODUCT_NAME = fileShow; + TEST_TARGET_NAME = "Jakobs Tools"; + USES_XCTRUNNER = YES; + }; + name = Debug; + }; + 36DCAB101C78731000753749 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Jakobs ToolsUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.jakob.stendahl.Jakobs-ToolsUITests"; + PRODUCT_NAME = fileShow; + TEST_TARGET_NAME = "Jakobs Tools"; + USES_XCTRUNNER = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 36DCAAE01C78731000753749 /* Build configuration list for PBXProject "fileShow" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 36DCAB061C78731000753749 /* Debug */, + 36DCAB071C78731000753749 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 36DCAB081C78731000753749 /* Build configuration list for PBXNativeTarget "fileShow" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 36DCAB091C78731000753749 /* Debug */, + 36DCAB0A1C78731000753749 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 36DCAB0B1C78731000753749 /* Build configuration list for PBXNativeTarget "fileShowTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 36DCAB0C1C78731000753749 /* Debug */, + 36DCAB0D1C78731000753749 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 36DCAB0E1C78731000753749 /* Build configuration list for PBXNativeTarget "fileShowUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 36DCAB0F1C78731000753749 /* Debug */, + 36DCAB101C78731000753749 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 36DCAADD1C78731000753749 /* Project object */; +} diff --git a/source/fileShow.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/source/fileShow.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..8c13f6d --- /dev/null +++ b/source/fileShow.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/source/fileShow.xcodeproj/project.xcworkspace/xcuserdata/jakob.xcuserdatad/UserInterfaceState.xcuserstate b/source/fileShow.xcodeproj/project.xcworkspace/xcuserdata/jakob.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..0051661 Binary files /dev/null and b/source/fileShow.xcodeproj/project.xcworkspace/xcuserdata/jakob.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..2937d6d --- /dev/null +++ b/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/Jakobs Tools.xcscheme b/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/Jakobs Tools.xcscheme new file mode 100644 index 0000000..fa799bf --- /dev/null +++ b/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/Jakobs Tools.xcscheme @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/xcschememanagement.plist b/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..dbce9fd --- /dev/null +++ b/source/fileShow.xcodeproj/xcuserdata/jakob.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,32 @@ + + + + + SchemeUserState + + Jakobs Tools.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 36DCAAE41C78731000753749 + + primary + + + 36DCAAF31C78731000753749 + + primary + + + 36DCAAFE1C78731000753749 + + primary + + + + + diff --git a/source/fileShow/Info.plist b/source/fileShow/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/source/fileShow/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/source/fileShow/Jakobs_ToolsTests.swift b/source/fileShow/Jakobs_ToolsTests.swift new file mode 100644 index 0000000..e8d9d98 --- /dev/null +++ b/source/fileShow/Jakobs_ToolsTests.swift @@ -0,0 +1,36 @@ +// +// Jakobs_ToolsTests.swift +// Jakobs ToolsTests +// +// Created by Jakob Stendahl on 20/02/16. +// Copyright © 2016 Jakob Stendahl. All rights reserved. +// + +import XCTest +@testable import Jakobs_Tools + +class Jakobs_ToolsTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measureBlock { + // Put the code you want to measure the time of here. + } + } + +} -- cgit v1.2.3