From 72c326f1506c47ce110289533d91d62f74568b45 Mon Sep 17 00:00:00 2001 From: rico becker Date: Tue, 13 Oct 2015 22:45:28 +0200 Subject: [PATCH] Adds swift preview target --- .../AppDelegate.swift | 28 + .../AppIcon.appiconset/Contents.json | 58 ++ .../Base.lproj/MainMenu.xib | 680 ++++++++++++++++++ Project/KFAboutWindowPreview-Swift/Info.plist | 34 + .../project.pbxproj | 177 ++++- Project/KFAboutWindowPreview/KFAppDelegate.m | 4 +- 6 files changed, 962 insertions(+), 19 deletions(-) create mode 100644 Project/KFAboutWindowPreview-Swift/AppDelegate.swift create mode 100644 Project/KFAboutWindowPreview-Swift/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Project/KFAboutWindowPreview-Swift/Base.lproj/MainMenu.xib create mode 100644 Project/KFAboutWindowPreview-Swift/Info.plist diff --git a/Project/KFAboutWindowPreview-Swift/AppDelegate.swift b/Project/KFAboutWindowPreview-Swift/AppDelegate.swift new file mode 100644 index 0000000..830012e --- /dev/null +++ b/Project/KFAboutWindowPreview-Swift/AppDelegate.swift @@ -0,0 +1,28 @@ +// +// AppDelegate.swift +// KFAboutWindowPreview-Swift +// +// Created by rick on 13/10/15. +// Copyright © 2015 KF Interactive. All rights reserved. +// + +import Cocoa +import KFAboutWindow + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + + @IBOutlet weak var window: NSWindow! + + + func applicationDidFinishLaunching(aNotification: NSNotification) { + // Insert code here to initialize your application + } + + func applicationWillTerminate(aNotification: NSNotification) { + // Insert code here to tear down your application + } + + +} + diff --git a/Project/KFAboutWindowPreview-Swift/Assets.xcassets/AppIcon.appiconset/Contents.json b/Project/KFAboutWindowPreview-Swift/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2db2b1c --- /dev/null +++ b/Project/KFAboutWindowPreview-Swift/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/Project/KFAboutWindowPreview-Swift/Base.lproj/MainMenu.xib b/Project/KFAboutWindowPreview-Swift/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..3ecdcde --- /dev/null +++ b/Project/KFAboutWindowPreview-Swift/Base.lproj/MainMenu.xib @@ -0,0 +1,680 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Project/KFAboutWindowPreview-Swift/Info.plist b/Project/KFAboutWindowPreview-Swift/Info.plist new file mode 100644 index 0000000..9a589ff --- /dev/null +++ b/Project/KFAboutWindowPreview-Swift/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + Copyright © 2015 KF Interactive. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/Project/KFAboutWindowPreview.xcodeproj/project.pbxproj b/Project/KFAboutWindowPreview.xcodeproj/project.pbxproj index 49252f4..5936891 100644 --- a/Project/KFAboutWindowPreview.xcodeproj/project.pbxproj +++ b/Project/KFAboutWindowPreview.xcodeproj/project.pbxproj @@ -25,23 +25,22 @@ 1D998F6A1BCD910300D56F27 /* KFAboutWindowStyleModel.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD5E19F9AA7F00540776 /* KFAboutWindowStyleModel.m */; settings = {ASSET_TAGS = (); }; }; 1D998F6B1BCD91E000D56F27 /* KFAutoScrollTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6019F9AA7F00540776 /* KFAutoScrollTextView.m */; settings = {ASSET_TAGS = (); }; }; 1D998F6C1BCD91E300D56F27 /* KFGradientScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6219F9AA8000540776 /* KFGradientScrollView.m */; settings = {ASSET_TAGS = (); }; }; - 1D998F6D1BCD91E900D56F27 /* KFAboutWindowController.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD5B19F9AA7F00540776 /* KFAboutWindowController.h */; settings = {ASSET_TAGS = (); }; }; - 1D998F6E1BCD91E900D56F27 /* KFAboutWindowStyleModel.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD5D19F9AA7F00540776 /* KFAboutWindowStyleModel.h */; settings = {ASSET_TAGS = (); }; }; + 1D998F6D1BCD91E900D56F27 /* KFAboutWindowController.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD5B19F9AA7F00540776 /* KFAboutWindowController.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1D998F6E1BCD91E900D56F27 /* KFAboutWindowStyleModel.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD5D19F9AA7F00540776 /* KFAboutWindowStyleModel.h */; settings = {ATTRIBUTES = (Public, ); }; }; 1D998F6F1BCD91E900D56F27 /* KFAutoScrollTextView.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD5F19F9AA7F00540776 /* KFAutoScrollTextView.h */; settings = {ASSET_TAGS = (); }; }; 1D998F701BCD91E900D56F27 /* KFGradientScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD6119F9AA8000540776 /* KFGradientScrollView.h */; settings = {ASSET_TAGS = (); }; }; 1D998F711BCD91E900D56F27 /* KFWebsiteButtonBundleNameTransformer.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD6319F9AA8000540776 /* KFWebsiteButtonBundleNameTransformer.h */; settings = {ASSET_TAGS = (); }; }; 1D998F721BCD91E900D56F27 /* KFWebsiteButtonBundleNameTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6419F9AA8000540776 /* KFWebsiteButtonBundleNameTransformer.m */; settings = {ASSET_TAGS = (); }; }; 1D998F731BCD91E900D56F27 /* NSAttributedString+CocoaPods.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEBCD6519F9AA8000540776 /* NSAttributedString+CocoaPods.h */; settings = {ASSET_TAGS = (); }; }; 1D998F741BCD91E900D56F27 /* NSAttributedString+CocoaPods.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6619F9AA8000540776 /* NSAttributedString+CocoaPods.m */; settings = {ASSET_TAGS = (); }; }; + 1D998F7F1BCDA41C00D56F27 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1D998F7E1BCDA41C00D56F27 /* AppDelegate.swift */; }; + 1D998F811BCDA41C00D56F27 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1D998F801BCDA41C00D56F27 /* Assets.xcassets */; }; + 1D998F841BCDA41C00D56F27 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1D998F821BCDA41C00D56F27 /* MainMenu.xib */; }; + 1D998F891BCDA43200D56F27 /* KFAboutWindow.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D998F5C1BCD90D500D56F27 /* KFAboutWindow.framework */; }; + 1D998F8A1BCDA43200D56F27 /* KFAboutWindow.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 1D998F5C1BCD90D500D56F27 /* KFAboutWindow.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 1DA9F25718C887D0001BAB97 /* Acknowledgements.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1DA9F25618C887D0001BAB97 /* Acknowledgements.plist */; }; 1DA9F25D18C8A515001BAB97 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DA9F25C18C8A515001BAB97 /* QuartzCore.framework */; }; FDEBCD6719F9AA8000540776 /* KFAboutWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = FDEBCD5819F9AA7F00540776 /* KFAboutWindow.xib */; }; - FDEBCD6819F9AA8000540776 /* KFAboutWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD5C19F9AA7F00540776 /* KFAboutWindowController.m */; }; - FDEBCD6919F9AA8000540776 /* KFAboutWindowStyleModel.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD5E19F9AA7F00540776 /* KFAboutWindowStyleModel.m */; }; - FDEBCD6A19F9AA8000540776 /* KFAutoScrollTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6019F9AA7F00540776 /* KFAutoScrollTextView.m */; }; - FDEBCD6B19F9AA8000540776 /* KFGradientScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6219F9AA8000540776 /* KFGradientScrollView.m */; }; - FDEBCD6C19F9AA8000540776 /* KFWebsiteButtonBundleNameTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6419F9AA8000540776 /* KFWebsiteButtonBundleNameTransformer.m */; }; - FDEBCD6D19F9AA8000540776 /* NSAttributedString+CocoaPods.m in Sources */ = {isa = PBXBuildFile; fileRef = FDEBCD6619F9AA8000540776 /* NSAttributedString+CocoaPods.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -59,6 +58,13 @@ remoteGlobalIDString = 1D998F5B1BCD90D500D56F27; remoteInfo = KFAboutWindow; }; + 1D998F8B1BCDA43200D56F27 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 1D8FD4AC18C7D7CD00D9A9FA /* Project object */; + proxyType = 1; + remoteGlobalIDString = 1D998F5B1BCD90D500D56F27; + remoteInfo = KFAboutWindow; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -73,6 +79,17 @@ name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; + 1D998F8D1BCDA43200D56F27 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 1D998F8A1BCDA43200D56F27 /* KFAboutWindow.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ @@ -98,6 +115,11 @@ 1D998F5C1BCD90D500D56F27 /* KFAboutWindow.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = KFAboutWindow.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 1D998F5E1BCD90D500D56F27 /* KFAboutWindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KFAboutWindow.h; sourceTree = ""; }; 1D998F601BCD90D500D56F27 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 1D998F7C1BCDA41C00D56F27 /* KFAboutWindowPreview-Swift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "KFAboutWindowPreview-Swift.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 1D998F7E1BCDA41C00D56F27 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 1D998F801BCDA41C00D56F27 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 1D998F831BCDA41C00D56F27 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 1D998F851BCDA41C00D56F27 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 1DA9F25618C887D0001BAB97 /* Acknowledgements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Acknowledgements.plist; sourceTree = ""; }; 1DA9F25C18C8A515001BAB97 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; FDEBCD5819F9AA7F00540776 /* KFAboutWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KFAboutWindow.xib; sourceTree = ""; }; @@ -142,6 +164,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 1D998F791BCDA41C00D56F27 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D998F891BCDA43200D56F27 /* KFAboutWindow.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -150,7 +180,8 @@ children = ( 1D8FD4BD18C7D7CD00D9A9FA /* KFAboutWindowPreview */, 1D8FD4DB18C7D7CE00D9A9FA /* KFAboutWindowPreviewTests */, - 1D998F5D1BCD90D500D56F27 /* KFAboutWindow */, + 1D998F7D1BCDA41C00D56F27 /* KFAboutWindowPreview-Swift */, + 1D998F5D1BCD90D500D56F27 /* KFAboutWindow-Framework */, 1D8FD4B618C7D7CD00D9A9FA /* Frameworks */, 1D8FD4B518C7D7CD00D9A9FA /* Products */, ); @@ -162,6 +193,7 @@ 1D8FD4B418C7D7CD00D9A9FA /* KFAboutWindowPreview.app */, 1D8FD4D518C7D7CE00D9A9FA /* KFAboutWindowPreviewTests.xctest */, 1D998F5C1BCD90D500D56F27 /* KFAboutWindow.framework */, + 1D998F7C1BCDA41C00D56F27 /* KFAboutWindowPreview-Swift.app */, ); name = Products; sourceTree = ""; @@ -232,15 +264,27 @@ name = "Supporting Files"; sourceTree = ""; }; - 1D998F5D1BCD90D500D56F27 /* KFAboutWindow */ = { + 1D998F5D1BCD90D500D56F27 /* KFAboutWindow-Framework */ = { isa = PBXGroup; children = ( 1D998F5E1BCD90D500D56F27 /* KFAboutWindow.h */, 1D998F601BCD90D500D56F27 /* Info.plist */, ); + name = "KFAboutWindow-Framework"; path = KFAboutWindow; sourceTree = ""; }; + 1D998F7D1BCDA41C00D56F27 /* KFAboutWindowPreview-Swift */ = { + isa = PBXGroup; + children = ( + 1D998F7E1BCDA41C00D56F27 /* AppDelegate.swift */, + 1D998F801BCDA41C00D56F27 /* Assets.xcassets */, + 1D998F821BCDA41C00D56F27 /* MainMenu.xib */, + 1D998F851BCDA41C00D56F27 /* Info.plist */, + ); + path = "KFAboutWindowPreview-Swift"; + sourceTree = ""; + }; FDEBCD5619F9AA7F00540776 /* Assets */ = { isa = PBXGroup; children = ( @@ -361,6 +405,25 @@ productReference = 1D998F5C1BCD90D500D56F27 /* KFAboutWindow.framework */; productType = "com.apple.product-type.framework"; }; + 1D998F7B1BCDA41C00D56F27 /* KFAboutWindowPreview-Swift */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D998F861BCDA41C00D56F27 /* Build configuration list for PBXNativeTarget "KFAboutWindowPreview-Swift" */; + buildPhases = ( + 1D998F781BCDA41C00D56F27 /* Sources */, + 1D998F791BCDA41C00D56F27 /* Frameworks */, + 1D998F7A1BCDA41C00D56F27 /* Resources */, + 1D998F8D1BCDA43200D56F27 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 1D998F8C1BCDA43200D56F27 /* PBXTargetDependency */, + ); + name = "KFAboutWindowPreview-Swift"; + productName = "KFAboutWindowPreview-Swift"; + productReference = 1D998F7C1BCDA41C00D56F27 /* KFAboutWindowPreview-Swift.app */; + productType = "com.apple.product-type.application"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -377,6 +440,9 @@ 1D998F5B1BCD90D500D56F27 = { CreatedOnToolsVersion = 7.0; }; + 1D998F7B1BCDA41C00D56F27 = { + CreatedOnToolsVersion = 7.0; + }; }; }; buildConfigurationList = 1D8FD4AF18C7D7CD00D9A9FA /* Build configuration list for PBXProject "KFAboutWindowPreview" */; @@ -395,6 +461,7 @@ 1D8FD4B318C7D7CD00D9A9FA /* KFAboutWindowPreview */, 1D8FD4D418C7D7CE00D9A9FA /* KFAboutWindowPreviewTests */, 1D998F5B1BCD90D500D56F27 /* KFAboutWindow */, + 1D998F7B1BCDA41C00D56F27 /* KFAboutWindowPreview-Swift */, ); }; /* End PBXProject section */ @@ -428,6 +495,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 1D998F7A1BCDA41C00D56F27 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D998F811BCDA41C00D56F27 /* Assets.xcassets in Resources */, + 1D998F841BCDA41C00D56F27 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -435,14 +511,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - FDEBCD6A19F9AA8000540776 /* KFAutoScrollTextView.m in Sources */, - FDEBCD6819F9AA8000540776 /* KFAboutWindowController.m in Sources */, 1D8FD4C418C7D7CD00D9A9FA /* main.m in Sources */, - FDEBCD6919F9AA8000540776 /* KFAboutWindowStyleModel.m in Sources */, - FDEBCD6B19F9AA8000540776 /* KFGradientScrollView.m in Sources */, 1D8FD4CB18C7D7CD00D9A9FA /* KFAppDelegate.m in Sources */, - FDEBCD6C19F9AA8000540776 /* KFWebsiteButtonBundleNameTransformer.m in Sources */, - FDEBCD6D19F9AA8000540776 /* NSAttributedString+CocoaPods.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -467,6 +537,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 1D998F781BCDA41C00D56F27 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D998F7F1BCDA41C00D56F27 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -480,6 +558,11 @@ target = 1D998F5B1BCD90D500D56F27 /* KFAboutWindow */; targetProxy = 1D998F611BCD90D500D56F27 /* PBXContainerItemProxy */; }; + 1D998F8C1BCDA43200D56F27 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 1D998F5B1BCD90D500D56F27 /* KFAboutWindow */; + targetProxy = 1D998F8B1BCDA43200D56F27 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -515,6 +598,14 @@ name = InfoPlist.strings; sourceTree = ""; }; + 1D998F821BCDA41C00D56F27 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 1D998F831BCDA41C00D56F27 /* Base */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -664,6 +755,7 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CLANG_WARN_UNREACHABLE_CODE = YES; + CODE_SIGN_IDENTITY = "-"; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = dwarf; @@ -694,6 +786,7 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CLANG_WARN_UNREACHABLE_CODE = YES; + CODE_SIGN_IDENTITY = "-"; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; @@ -718,6 +811,49 @@ }; name = Release; }; + 1D998F871BCDA41C00D56F27 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CODE_SIGN_IDENTITY = "-"; + COMBINE_HIDPI_IMAGES = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + INFOPLIST_FILE = "KFAboutWindowPreview-Swift/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.kf-interactive.osx.KFAboutWindowPreview-Swift"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 1D998F881BCDA41C00D56F27 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CODE_SIGN_IDENTITY = "-"; + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + INFOPLIST_FILE = "KFAboutWindowPreview-Swift/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.11; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = "com.kf-interactive.osx.KFAboutWindowPreview-Swift"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -755,6 +891,15 @@ 1D998F661BCD90D500D56F27 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1D998F861BCDA41C00D56F27 /* Build configuration list for PBXNativeTarget "KFAboutWindowPreview-Swift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D998F871BCDA41C00D56F27 /* Debug */, + 1D998F881BCDA41C00D56F27 /* Release */, + ); + defaultConfigurationIsVisible = 0; }; /* End XCConfigurationList section */ }; diff --git a/Project/KFAboutWindowPreview/KFAppDelegate.m b/Project/KFAboutWindowPreview/KFAppDelegate.m index 429a3e9..3ffbadd 100644 --- a/Project/KFAboutWindowPreview/KFAppDelegate.m +++ b/Project/KFAboutWindowPreview/KFAppDelegate.m @@ -7,9 +7,7 @@ // #import "KFAppDelegate.h" - -#import "KFAboutWindowController.h" -#import "KFAboutWindowStyleModel.h" +#import #define kShowCustomization NO