diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e6e5f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Xcode (from gitignore.io) +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate + +# CocoaPod +Pods/* +Podfile.lock + +# others +*.swp +!.gitkeep +.DS_Store \ No newline at end of file diff --git a/SyakaiseiFilterButton.xcodeproj/project.pbxproj b/SyakaiseiFilterButton.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a77bcaa --- /dev/null +++ b/SyakaiseiFilterButton.xcodeproj/project.pbxproj @@ -0,0 +1,584 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + D0572F3A1EAB4EB600CC001F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0572F391EAB4EB600CC001F /* AppDelegate.swift */; }; + D0572F3E1EAB4EB700CC001F /* Document.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0572F3D1EAB4EB700CC001F /* Document.swift */; }; + D0572F411EAB4EB700CC001F /* Document.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = D0572F3F1EAB4EB700CC001F /* Document.xcdatamodeld */; }; + D0572F431EAB4EB700CC001F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D0572F421EAB4EB700CC001F /* Assets.xcassets */; }; + D0572F461EAB4EB700CC001F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D0572F441EAB4EB700CC001F /* Main.storyboard */; }; + D0572F511EAB4EB700CC001F /* SyakaiseiFilterButtonTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0572F501EAB4EB700CC001F /* SyakaiseiFilterButtonTests.swift */; }; + D0572F5C1EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0572F5B1EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.swift */; }; + D0572F711EAB534E00CC001F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0572F701EAB534E00CC001F /* ViewController.swift */; }; + D0572F731EAB535500CC001F /* WindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0572F721EAB535500CC001F /* WindowController.swift */; }; + D0572F761EAB54BB00CC001F /* line-girl1-hee1.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = D0572F751EAB54BB00CC001F /* line-girl1-hee1.mp3 */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + D0572F4D1EAB4EB700CC001F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D0572F2E1EAB4EB600CC001F /* Project object */; + proxyType = 1; + remoteGlobalIDString = D0572F351EAB4EB600CC001F; + remoteInfo = SyakaiseiFilterButton; + }; + D0572F581EAB4EB700CC001F /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D0572F2E1EAB4EB600CC001F /* Project object */; + proxyType = 1; + remoteGlobalIDString = D0572F351EAB4EB600CC001F; + remoteInfo = SyakaiseiFilterButton; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + D0572F361EAB4EB600CC001F /* SyakaiseiFilterButton.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SyakaiseiFilterButton.app; sourceTree = BUILT_PRODUCTS_DIR; }; + D0572F391EAB4EB600CC001F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + D0572F3D1EAB4EB700CC001F /* Document.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Document.swift; sourceTree = ""; }; + D0572F401EAB4EB700CC001F /* Document.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Document.xcdatamodel; sourceTree = ""; }; + D0572F421EAB4EB700CC001F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + D0572F451EAB4EB700CC001F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + D0572F471EAB4EB700CC001F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D0572F4C1EAB4EB700CC001F /* SyakaiseiFilterButtonTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SyakaiseiFilterButtonTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + D0572F501EAB4EB700CC001F /* SyakaiseiFilterButtonTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyakaiseiFilterButtonTests.swift; sourceTree = ""; }; + D0572F521EAB4EB700CC001F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D0572F571EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SyakaiseiFilterButtonUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + D0572F5B1EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyakaiseiFilterButtonUITests.swift; sourceTree = ""; }; + D0572F5D1EAB4EB700CC001F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D0572F701EAB534E00CC001F /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = Class/Controller/ViewController.swift; sourceTree = ""; }; + D0572F721EAB535500CC001F /* WindowController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = WindowController.swift; path = Class/Controller/WindowController.swift; sourceTree = ""; }; + D0572F751EAB54BB00CC001F /* line-girl1-hee1.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; name = "line-girl1-hee1.mp3"; path = "Sound/line-girl1-hee1.mp3"; sourceTree = ""; }; + D0572F781EAB61E000CC001F /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + D0572F331EAB4EB600CC001F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D0572F491EAB4EB700CC001F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D0572F541EAB4EB700CC001F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + D0572F2D1EAB4EB600CC001F = { + isa = PBXGroup; + children = ( + D0572F381EAB4EB600CC001F /* SyakaiseiFilterButton */, + D0572F4F1EAB4EB700CC001F /* SyakaiseiFilterButtonTests */, + D0572F5A1EAB4EB700CC001F /* SyakaiseiFilterButtonUITests */, + D0572F371EAB4EB600CC001F /* Products */, + D0572F771EAB61DF00CC001F /* Frameworks */, + ); + sourceTree = ""; + }; + D0572F371EAB4EB600CC001F /* Products */ = { + isa = PBXGroup; + children = ( + D0572F361EAB4EB600CC001F /* SyakaiseiFilterButton.app */, + D0572F4C1EAB4EB700CC001F /* SyakaiseiFilterButtonTests.xctest */, + D0572F571EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + D0572F381EAB4EB600CC001F /* SyakaiseiFilterButton */ = { + isa = PBXGroup; + children = ( + D0572F6E1EAB533500CC001F /* Class */, + D0572F391EAB4EB600CC001F /* AppDelegate.swift */, + D0572F3D1EAB4EB700CC001F /* Document.swift */, + D0572F741EAB54AE00CC001F /* Sound */, + D0572F421EAB4EB700CC001F /* Assets.xcassets */, + D0572F441EAB4EB700CC001F /* Main.storyboard */, + D0572F471EAB4EB700CC001F /* Info.plist */, + D0572F3F1EAB4EB700CC001F /* Document.xcdatamodeld */, + ); + path = SyakaiseiFilterButton; + sourceTree = ""; + }; + D0572F4F1EAB4EB700CC001F /* SyakaiseiFilterButtonTests */ = { + isa = PBXGroup; + children = ( + D0572F501EAB4EB700CC001F /* SyakaiseiFilterButtonTests.swift */, + D0572F521EAB4EB700CC001F /* Info.plist */, + ); + path = SyakaiseiFilterButtonTests; + sourceTree = ""; + }; + D0572F5A1EAB4EB700CC001F /* SyakaiseiFilterButtonUITests */ = { + isa = PBXGroup; + children = ( + D0572F5B1EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.swift */, + D0572F5D1EAB4EB700CC001F /* Info.plist */, + ); + path = SyakaiseiFilterButtonUITests; + sourceTree = ""; + }; + D0572F6E1EAB533500CC001F /* Class */ = { + isa = PBXGroup; + children = ( + D0572F6F1EAB534200CC001F /* Controller */, + ); + name = Class; + sourceTree = ""; + }; + D0572F6F1EAB534200CC001F /* Controller */ = { + isa = PBXGroup; + children = ( + D0572F701EAB534E00CC001F /* ViewController.swift */, + D0572F721EAB535500CC001F /* WindowController.swift */, + ); + name = Controller; + sourceTree = ""; + }; + D0572F741EAB54AE00CC001F /* Sound */ = { + isa = PBXGroup; + children = ( + D0572F751EAB54BB00CC001F /* line-girl1-hee1.mp3 */, + ); + name = Sound; + sourceTree = ""; + }; + D0572F771EAB61DF00CC001F /* Frameworks */ = { + isa = PBXGroup; + children = ( + D0572F781EAB61E000CC001F /* AVFoundation.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + D0572F351EAB4EB600CC001F /* SyakaiseiFilterButton */ = { + isa = PBXNativeTarget; + buildConfigurationList = D0572F601EAB4EB700CC001F /* Build configuration list for PBXNativeTarget "SyakaiseiFilterButton" */; + buildPhases = ( + D0572F321EAB4EB600CC001F /* Sources */, + D0572F331EAB4EB600CC001F /* Frameworks */, + D0572F341EAB4EB600CC001F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SyakaiseiFilterButton; + productName = SyakaiseiFilterButton; + productReference = D0572F361EAB4EB600CC001F /* SyakaiseiFilterButton.app */; + productType = "com.apple.product-type.application"; + }; + D0572F4B1EAB4EB700CC001F /* SyakaiseiFilterButtonTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = D0572F631EAB4EB700CC001F /* Build configuration list for PBXNativeTarget "SyakaiseiFilterButtonTests" */; + buildPhases = ( + D0572F481EAB4EB700CC001F /* Sources */, + D0572F491EAB4EB700CC001F /* Frameworks */, + D0572F4A1EAB4EB700CC001F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + D0572F4E1EAB4EB700CC001F /* PBXTargetDependency */, + ); + name = SyakaiseiFilterButtonTests; + productName = SyakaiseiFilterButtonTests; + productReference = D0572F4C1EAB4EB700CC001F /* SyakaiseiFilterButtonTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + D0572F561EAB4EB700CC001F /* SyakaiseiFilterButtonUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = D0572F661EAB4EB700CC001F /* Build configuration list for PBXNativeTarget "SyakaiseiFilterButtonUITests" */; + buildPhases = ( + D0572F531EAB4EB700CC001F /* Sources */, + D0572F541EAB4EB700CC001F /* Frameworks */, + D0572F551EAB4EB700CC001F /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + D0572F591EAB4EB700CC001F /* PBXTargetDependency */, + ); + name = SyakaiseiFilterButtonUITests; + productName = SyakaiseiFilterButtonUITests; + productReference = D0572F571EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D0572F2E1EAB4EB600CC001F /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0830; + LastUpgradeCheck = 0830; + ORGANIZATIONNAME = "五十嵐翔"; + TargetAttributes = { + D0572F351EAB4EB600CC001F = { + CreatedOnToolsVersion = 8.3.2; + ProvisioningStyle = Automatic; + }; + D0572F4B1EAB4EB700CC001F = { + CreatedOnToolsVersion = 8.3.2; + ProvisioningStyle = Automatic; + TestTargetID = D0572F351EAB4EB600CC001F; + }; + D0572F561EAB4EB700CC001F = { + CreatedOnToolsVersion = 8.3.2; + ProvisioningStyle = Automatic; + TestTargetID = D0572F351EAB4EB600CC001F; + }; + }; + }; + buildConfigurationList = D0572F311EAB4EB600CC001F /* Build configuration list for PBXProject "SyakaiseiFilterButton" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = D0572F2D1EAB4EB600CC001F; + productRefGroup = D0572F371EAB4EB600CC001F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + D0572F351EAB4EB600CC001F /* SyakaiseiFilterButton */, + D0572F4B1EAB4EB700CC001F /* SyakaiseiFilterButtonTests */, + D0572F561EAB4EB700CC001F /* SyakaiseiFilterButtonUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + D0572F341EAB4EB600CC001F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D0572F431EAB4EB700CC001F /* Assets.xcassets in Resources */, + D0572F761EAB54BB00CC001F /* line-girl1-hee1.mp3 in Resources */, + D0572F461EAB4EB700CC001F /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D0572F4A1EAB4EB700CC001F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D0572F551EAB4EB700CC001F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + D0572F321EAB4EB600CC001F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D0572F411EAB4EB700CC001F /* Document.xcdatamodeld in Sources */, + D0572F731EAB535500CC001F /* WindowController.swift in Sources */, + D0572F3A1EAB4EB600CC001F /* AppDelegate.swift in Sources */, + D0572F711EAB534E00CC001F /* ViewController.swift in Sources */, + D0572F3E1EAB4EB700CC001F /* Document.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D0572F481EAB4EB700CC001F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D0572F511EAB4EB700CC001F /* SyakaiseiFilterButtonTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D0572F531EAB4EB700CC001F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D0572F5C1EAB4EB700CC001F /* SyakaiseiFilterButtonUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + D0572F4E1EAB4EB700CC001F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = D0572F351EAB4EB600CC001F /* SyakaiseiFilterButton */; + targetProxy = D0572F4D1EAB4EB700CC001F /* PBXContainerItemProxy */; + }; + D0572F591EAB4EB700CC001F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = D0572F351EAB4EB600CC001F /* SyakaiseiFilterButton */; + targetProxy = D0572F581EAB4EB700CC001F /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + D0572F441EAB4EB700CC001F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + D0572F451EAB4EB700CC001F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + D0572F5E1EAB4EB700CC001F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + 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_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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.12; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + D0572F5F1EAB4EB700CC001F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + 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_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + 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.12; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + }; + name = Release; + }; + D0572F611EAB4EB700CC001F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = SyakaiseiFilterButton/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = work.syonet.SyakaiseiFilterButton; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + D0572F621EAB4EB700CC001F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = SyakaiseiFilterButton/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = work.syonet.SyakaiseiFilterButton; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; + D0572F641EAB4EB700CC001F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = SyakaiseiFilterButtonTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = work.syonet.SyakaiseiFilterButtonTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SyakaiseiFilterButton.app/Contents/MacOS/SyakaiseiFilterButton"; + }; + name = Debug; + }; + D0572F651EAB4EB700CC001F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = SyakaiseiFilterButtonTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = work.syonet.SyakaiseiFilterButtonTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SyakaiseiFilterButton.app/Contents/MacOS/SyakaiseiFilterButton"; + }; + name = Release; + }; + D0572F671EAB4EB700CC001F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = SyakaiseiFilterButtonUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = work.syonet.SyakaiseiFilterButtonUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = SyakaiseiFilterButton; + }; + name = Debug; + }; + D0572F681EAB4EB700CC001F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = SyakaiseiFilterButtonUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = work.syonet.SyakaiseiFilterButtonUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = SyakaiseiFilterButton; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + D0572F311EAB4EB600CC001F /* Build configuration list for PBXProject "SyakaiseiFilterButton" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D0572F5E1EAB4EB700CC001F /* Debug */, + D0572F5F1EAB4EB700CC001F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D0572F601EAB4EB700CC001F /* Build configuration list for PBXNativeTarget "SyakaiseiFilterButton" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D0572F611EAB4EB700CC001F /* Debug */, + D0572F621EAB4EB700CC001F /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + D0572F631EAB4EB700CC001F /* Build configuration list for PBXNativeTarget "SyakaiseiFilterButtonTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D0572F641EAB4EB700CC001F /* Debug */, + D0572F651EAB4EB700CC001F /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + D0572F661EAB4EB700CC001F /* Build configuration list for PBXNativeTarget "SyakaiseiFilterButtonUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D0572F671EAB4EB700CC001F /* Debug */, + D0572F681EAB4EB700CC001F /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + D0572F3F1EAB4EB700CC001F /* Document.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + D0572F401EAB4EB700CC001F /* Document.xcdatamodel */, + ); + currentVersion = D0572F401EAB4EB700CC001F /* Document.xcdatamodel */; + path = Document.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = D0572F2E1EAB4EB600CC001F /* Project object */; +} diff --git a/SyakaiseiFilterButton.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SyakaiseiFilterButton.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..f89da66 --- /dev/null +++ b/SyakaiseiFilterButton.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SyakaiseiFilterButton/AppDelegate.swift b/SyakaiseiFilterButton/AppDelegate.swift new file mode 100644 index 0000000..fc3c429 --- /dev/null +++ b/SyakaiseiFilterButton/AppDelegate.swift @@ -0,0 +1,23 @@ +// +// AppDelegate.swift +// SyakaiseiFilterButton +// + +import Cocoa + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + + + + func applicationDidFinishLaunching(_ aNotification: Notification) { + // Insert code here to initialize your application + } + + func applicationWillTerminate(_ aNotification: Notification) { + // Insert code here to tear down your application + } + + +} + diff --git a/SyakaiseiFilterButton/Assets.xcassets/AppIcon.appiconset/Contents.json b/SyakaiseiFilterButton/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2db2b1c --- /dev/null +++ b/SyakaiseiFilterButton/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/SyakaiseiFilterButton/Base.lproj/Main.storyboard b/SyakaiseiFilterButton/Base.lproj/Main.storyboard new file mode 100644 index 0000000..e722e98 --- /dev/null +++ b/SyakaiseiFilterButton/Base.lproj/Main.storyboard @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SyakaiseiFilterButton/Class/Controller/ViewController.swift b/SyakaiseiFilterButton/Class/Controller/ViewController.swift new file mode 100644 index 0000000..3f43529 --- /dev/null +++ b/SyakaiseiFilterButton/Class/Controller/ViewController.swift @@ -0,0 +1,16 @@ +// +// ViewController.swift +// SyakaiseiFilterTouchBar +// +// ウィンドウの画面上の処理を扱う +// + +import Cocoa + +class ViewController: NSViewController { + // MARK:- Life Cicle Method + override func viewDidLoad() { + super.viewDidLoad() + } +} + diff --git a/SyakaiseiFilterButton/Class/Controller/WindowController.swift b/SyakaiseiFilterButton/Class/Controller/WindowController.swift new file mode 100644 index 0000000..0b07a87 --- /dev/null +++ b/SyakaiseiFilterButton/Class/Controller/WindowController.swift @@ -0,0 +1,38 @@ +// +// WindowController.swift +// SyakaiseiFilterTouchBar +// +// ウィンドウが開いている時の処理を扱う +// + +import Cocoa +import AVFoundation + +class WindowController: NSWindowController, AVAudioPlayerDelegate { + + // MARK:- Var on fields + /// AudioPlayer + var AudioPlayer = AVAudioPlayer () + + // MARK:- Life Cicle Method + override func windowDidLoad() { + super.windowDidLoad() + // 再生する音声ファイル指定 + let soundFilePath = NSURL(fileURLWithPath:Bundle.main.path(forResource: "line-girl1-hee1", ofType: "mp3")!) + + AudioPlayer = try! AVAudioPlayer(contentsOf: soundFilePath as URL) + AudioPlayer.prepareToPlay() + AudioPlayer.delegate = self + } + + // MARK:- TouchBarButtonイベント + /// へぇボタン押下時の処理 + /// + /// - Parameter sender: <#sender description#> + @IBAction func touchHeButton(_ sender: Any) { + AudioPlayer.currentTime = 0 + // 音の再生 + AudioPlayer.play() + } + +} diff --git a/SyakaiseiFilterButton/Document.swift b/SyakaiseiFilterButton/Document.swift new file mode 100644 index 0000000..cc4980d --- /dev/null +++ b/SyakaiseiFilterButton/Document.swift @@ -0,0 +1,26 @@ +// +// Document.swift +// SyakaiseiFilterButton +// + +import Cocoa + +class Document: NSPersistentDocument { + + override init() { + super.init() + // Add your subclass-specific initialization here. + } + + override class func autosavesInPlace() -> Bool { + return true + } + + override func makeWindowControllers() { + // Returns the Storyboard that contains your Document window. + let storyboard = NSStoryboard(name: "Main", bundle: nil) + let windowController = storyboard.instantiateController(withIdentifier: "Document Window Controller") as! NSWindowController + self.addWindowController(windowController) + } + +} diff --git a/SyakaiseiFilterButton/Document.xcdatamodeld/.xccurrentversion b/SyakaiseiFilterButton/Document.xcdatamodeld/.xccurrentversion new file mode 100644 index 0000000..29890b8 --- /dev/null +++ b/SyakaiseiFilterButton/Document.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + Document.xcdatamodel + + diff --git a/SyakaiseiFilterButton/Document.xcdatamodeld/Document.xcdatamodel/contents b/SyakaiseiFilterButton/Document.xcdatamodeld/Document.xcdatamodel/contents new file mode 100644 index 0000000..476e5b6 --- /dev/null +++ b/SyakaiseiFilterButton/Document.xcdatamodeld/Document.xcdatamodel/contents @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/SyakaiseiFilterButton/Info.plist b/SyakaiseiFilterButton/Info.plist new file mode 100644 index 0000000..a13ea47 --- /dev/null +++ b/SyakaiseiFilterButton/Info.plist @@ -0,0 +1,101 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + binary + + CFBundleTypeMIMETypes + + application/octet-stream + + CFBundleTypeName + Binary + CFBundleTypeRole + Editor + LSTypeIsPackage + + NSDocumentClass + $(PRODUCT_MODULE_NAME).Document + NSPersistentStoreTypeKey + Binary + + + CFBundleTypeExtensions + + sqlite + + CFBundleTypeMIMETypes + + application/octet-stream + + CFBundleTypeName + SQLite + CFBundleTypeRole + Editor + LSTypeIsPackage + + NSDocumentClass + $(PRODUCT_MODULE_NAME).Document + NSPersistentStoreTypeKey + SQLite + + + CFBundleTypeExtensions + + xml + + CFBundleTypeIconFile + + CFBundleTypeMIMETypes + + text/xml + + CFBundleTypeName + XML + CFBundleTypeOSTypes + + ???? + + CFBundleTypeRole + Editor + LSTypeIsPackage + + NSDocumentClass + $(PRODUCT_MODULE_NAME).Document + NSPersistentStoreTypeKey + XML + + + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + Copyright © 2017年 五十嵐翔. All rights reserved. + NSMainStoryboardFile + Main + NSPrincipalClass + NSApplication + + diff --git a/SyakaiseiFilterButton/Sound/line-girl1-hee1.mp3 b/SyakaiseiFilterButton/Sound/line-girl1-hee1.mp3 new file mode 100644 index 0000000..84bb731 Binary files /dev/null and b/SyakaiseiFilterButton/Sound/line-girl1-hee1.mp3 differ diff --git a/SyakaiseiFilterButtonTests/Info.plist b/SyakaiseiFilterButtonTests/Info.plist new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ b/SyakaiseiFilterButtonTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/SyakaiseiFilterButtonTests/SyakaiseiFilterButtonTests.swift b/SyakaiseiFilterButtonTests/SyakaiseiFilterButtonTests.swift new file mode 100644 index 0000000..b9f0c9a --- /dev/null +++ b/SyakaiseiFilterButtonTests/SyakaiseiFilterButtonTests.swift @@ -0,0 +1,33 @@ +// +// SyakaiseiFilterButtonTests.swift +// SyakaiseiFilterButtonTests +// + +import XCTest +@testable import SyakaiseiFilterButton + +class SyakaiseiFilterButtonTests: 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.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/SyakaiseiFilterButtonUITests/Info.plist b/SyakaiseiFilterButtonUITests/Info.plist new file mode 100644 index 0000000..6c6c23c --- /dev/null +++ b/SyakaiseiFilterButtonUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/SyakaiseiFilterButtonUITests/SyakaiseiFilterButtonUITests.swift b/SyakaiseiFilterButtonUITests/SyakaiseiFilterButtonUITests.swift new file mode 100644 index 0000000..37b40b2 --- /dev/null +++ b/SyakaiseiFilterButtonUITests/SyakaiseiFilterButtonUITests.swift @@ -0,0 +1,33 @@ +// +// SyakaiseiFilterButtonUITests.swift +// SyakaiseiFilterButtonUITests +// + +import XCTest + +class SyakaiseiFilterButtonUITests: 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. + } + +}