From b600a76528d9c3500f7b7bfd27e3ff2e3d0d624c Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sat, 15 Nov 2014 04:39:10 +0100 Subject: [PATCH] Initial Commit --- AVRsack.xcodeproj/project.pbxproj | 424 +++++++++++ .../contents.xcworkspacedata | 7 + AVRsack/AppDelegate.swift | 26 + AVRsack/Base.lproj/Document.xib | 43 ++ AVRsack/Base.lproj/MainMenu.xib | 666 ++++++++++++++++++ AVRsack/Document.swift | 50 ++ .../AppIcon.appiconset/Contents.json | 58 ++ AVRsack/Info.plist | 55 ++ AVRsackTests/AVRsackTests.swift | 36 + AVRsackTests/Info.plist | 24 + 10 files changed, 1389 insertions(+) create mode 100644 AVRsack.xcodeproj/project.pbxproj create mode 100644 AVRsack.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 AVRsack/AppDelegate.swift create mode 100644 AVRsack/Base.lproj/Document.xib create mode 100644 AVRsack/Base.lproj/MainMenu.xib create mode 100644 AVRsack/Document.swift create mode 100644 AVRsack/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 AVRsack/Info.plist create mode 100644 AVRsackTests/AVRsackTests.swift create mode 100644 AVRsackTests/Info.plist diff --git a/AVRsack.xcodeproj/project.pbxproj b/AVRsack.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7caefde --- /dev/null +++ b/AVRsack.xcodeproj/project.pbxproj @@ -0,0 +1,424 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 9501D8021A17025C0034C530 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9501D8011A17025C0034C530 /* AppDelegate.swift */; }; + 9501D8041A17025C0034C530 /* Document.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9501D8031A17025C0034C530 /* Document.swift */; }; + 9501D8071A17025C0034C530 /* Document.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9501D8051A17025C0034C530 /* Document.xib */; }; + 9501D8091A17025C0034C530 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9501D8081A17025C0034C530 /* Images.xcassets */; }; + 9501D80C1A17025C0034C530 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9501D80A1A17025C0034C530 /* MainMenu.xib */; }; + 9501D8181A17025C0034C530 /* AVRsackTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9501D8171A17025C0034C530 /* AVRsackTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 9501D8121A17025C0034C530 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 9501D7F41A17025C0034C530 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 9501D7FB1A17025C0034C530; + remoteInfo = AVRsack; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 9501D7FC1A17025C0034C530 /* AVRsack.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AVRsack.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 9501D8001A17025C0034C530 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9501D8011A17025C0034C530 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 9501D8031A17025C0034C530 /* Document.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Document.swift; sourceTree = ""; }; + 9501D8061A17025C0034C530 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Document.xib; sourceTree = ""; }; + 9501D8081A17025C0034C530 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 9501D80B1A17025C0034C530 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 9501D8111A17025C0034C530 /* AVRsackTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AVRsackTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 9501D8161A17025C0034C530 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9501D8171A17025C0034C530 /* AVRsackTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AVRsackTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 9501D7F91A17025C0034C530 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9501D80E1A17025C0034C530 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9501D7F31A17025C0034C530 = { + isa = PBXGroup; + children = ( + 9501D7FE1A17025C0034C530 /* AVRsack */, + 9501D8141A17025C0034C530 /* AVRsackTests */, + 9501D7FD1A17025C0034C530 /* Products */, + ); + sourceTree = ""; + }; + 9501D7FD1A17025C0034C530 /* Products */ = { + isa = PBXGroup; + children = ( + 9501D7FC1A17025C0034C530 /* AVRsack.app */, + 9501D8111A17025C0034C530 /* AVRsackTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 9501D7FE1A17025C0034C530 /* AVRsack */ = { + isa = PBXGroup; + children = ( + 9501D8011A17025C0034C530 /* AppDelegate.swift */, + 9501D8031A17025C0034C530 /* Document.swift */, + 9501D8051A17025C0034C530 /* Document.xib */, + 9501D8081A17025C0034C530 /* Images.xcassets */, + 9501D80A1A17025C0034C530 /* MainMenu.xib */, + 9501D7FF1A17025C0034C530 /* Supporting Files */, + ); + path = AVRsack; + sourceTree = ""; + }; + 9501D7FF1A17025C0034C530 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 9501D8001A17025C0034C530 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 9501D8141A17025C0034C530 /* AVRsackTests */ = { + isa = PBXGroup; + children = ( + 9501D8171A17025C0034C530 /* AVRsackTests.swift */, + 9501D8151A17025C0034C530 /* Supporting Files */, + ); + path = AVRsackTests; + sourceTree = ""; + }; + 9501D8151A17025C0034C530 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 9501D8161A17025C0034C530 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 9501D7FB1A17025C0034C530 /* AVRsack */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9501D81B1A17025C0034C530 /* Build configuration list for PBXNativeTarget "AVRsack" */; + buildPhases = ( + 9501D7F81A17025C0034C530 /* Sources */, + 9501D7F91A17025C0034C530 /* Frameworks */, + 9501D7FA1A17025C0034C530 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AVRsack; + productName = AVRsack; + productReference = 9501D7FC1A17025C0034C530 /* AVRsack.app */; + productType = "com.apple.product-type.application"; + }; + 9501D8101A17025C0034C530 /* AVRsackTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9501D81E1A17025C0034C530 /* Build configuration list for PBXNativeTarget "AVRsackTests" */; + buildPhases = ( + 9501D80D1A17025C0034C530 /* Sources */, + 9501D80E1A17025C0034C530 /* Frameworks */, + 9501D80F1A17025C0034C530 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 9501D8131A17025C0034C530 /* PBXTargetDependency */, + ); + name = AVRsackTests; + productName = AVRsackTests; + productReference = 9501D8111A17025C0034C530 /* AVRsackTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 9501D7F41A17025C0034C530 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0630; + ORGANIZATIONNAME = "Aere Perennius"; + TargetAttributes = { + 9501D7FB1A17025C0034C530 = { + CreatedOnToolsVersion = 6.3; + }; + 9501D8101A17025C0034C530 = { + CreatedOnToolsVersion = 6.3; + TestTargetID = 9501D7FB1A17025C0034C530; + }; + }; + }; + buildConfigurationList = 9501D7F71A17025C0034C530 /* Build configuration list for PBXProject "AVRsack" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 9501D7F31A17025C0034C530; + productRefGroup = 9501D7FD1A17025C0034C530 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 9501D7FB1A17025C0034C530 /* AVRsack */, + 9501D8101A17025C0034C530 /* AVRsackTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 9501D7FA1A17025C0034C530 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9501D8071A17025C0034C530 /* Document.xib in Resources */, + 9501D8091A17025C0034C530 /* Images.xcassets in Resources */, + 9501D80C1A17025C0034C530 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9501D80F1A17025C0034C530 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9501D7F81A17025C0034C530 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9501D8041A17025C0034C530 /* Document.swift in Sources */, + 9501D8021A17025C0034C530 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 9501D80D1A17025C0034C530 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9501D8181A17025C0034C530 /* AVRsackTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 9501D8131A17025C0034C530 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 9501D7FB1A17025C0034C530 /* AVRsack */; + targetProxy = 9501D8121A17025C0034C530 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 9501D8051A17025C0034C530 /* Document.xib */ = { + isa = PBXVariantGroup; + children = ( + 9501D8061A17025C0034C530 /* Base */, + ); + name = Document.xib; + sourceTree = ""; + }; + 9501D80A1A17025C0034C530 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 9501D80B1A17025C0034C530 /* Base */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 9501D8191A17025C0034C530 /* 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; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + 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.10; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 9501D81A1A17025C0034C530 /* 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 = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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.10; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + 9501D81C1A17025C0034C530 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = AVRsack/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 9501D81D1A17025C0034C530 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = AVRsack/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 9501D81F1A17025C0034C530 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = AVRsackTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AVRsack.app/Contents/MacOS/AVRsack"; + }; + name = Debug; + }; + 9501D8201A17025C0034C530 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + INFOPLIST_FILE = AVRsackTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AVRsack.app/Contents/MacOS/AVRsack"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 9501D7F71A17025C0034C530 /* Build configuration list for PBXProject "AVRsack" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9501D8191A17025C0034C530 /* Debug */, + 9501D81A1A17025C0034C530 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9501D81B1A17025C0034C530 /* Build configuration list for PBXNativeTarget "AVRsack" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9501D81C1A17025C0034C530 /* Debug */, + 9501D81D1A17025C0034C530 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 9501D81E1A17025C0034C530 /* Build configuration list for PBXNativeTarget "AVRsackTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9501D81F1A17025C0034C530 /* Debug */, + 9501D8201A17025C0034C530 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 9501D7F41A17025C0034C530 /* Project object */; +} diff --git a/AVRsack.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/AVRsack.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..8255f70 --- /dev/null +++ b/AVRsack.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/AVRsack/AppDelegate.swift b/AVRsack/AppDelegate.swift new file mode 100644 index 0000000..85365a2 --- /dev/null +++ b/AVRsack/AppDelegate.swift @@ -0,0 +1,26 @@ +// +// AppDelegate.swift +// AVRsack +// +// Created by Matthias Neeracher on 11/15/14. +// Copyright (c) 2014 Aere Perennius. All rights reserved. +// + +import Cocoa + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + + + + 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/AVRsack/Base.lproj/Document.xib b/AVRsack/Base.lproj/Document.xib new file mode 100644 index 0000000..08a18c7 --- /dev/null +++ b/AVRsack/Base.lproj/Document.xib @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AVRsack/Base.lproj/MainMenu.xib b/AVRsack/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..6db088a --- /dev/null +++ b/AVRsack/Base.lproj/MainMenu.xib @@ -0,0 +1,666 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AVRsack/Document.swift b/AVRsack/Document.swift new file mode 100644 index 0000000..4ee6685 --- /dev/null +++ b/AVRsack/Document.swift @@ -0,0 +1,50 @@ +// +// Document.swift +// AVRsack +// +// Created by Matthias Neeracher on 11/15/14. +// Copyright (c) 2014 Aere Perennius. All rights reserved. +// + +import Cocoa + +class Document: NSDocument { + + override init() { + super.init() + // Add your subclass-specific initialization here. + } + + override func windowControllerDidLoadNib(aController: NSWindowController) { + super.windowControllerDidLoadNib(aController) + // Add any code here that needs to be executed once the windowController has loaded the document's window. + } + + override class func autosavesInPlace() -> Bool { + return true + } + + override var windowNibName: String? { + // Returns the nib file name of the document + // If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this property and override -makeWindowControllers instead. + return "Document" + } + + override func dataOfType(typeName: String, error outError: NSErrorPointer) -> NSData? { + // Insert code here to write your document to data of the specified type. If outError != nil, ensure that you create and set an appropriate error when returning nil. + // You can also choose to override fileWrapperOfType:error:, writeToURL:ofType:error:, or writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead. + outError.memory = NSError(domain: NSOSStatusErrorDomain, code: unimpErr, userInfo: nil) + return nil + } + + override func readFromData(data: NSData, ofType typeName: String, error outError: NSErrorPointer) -> Bool { + // Insert code here to read your document from the given data of the specified type. If outError != nil, ensure that you create and set an appropriate error when returning false. + // You can also choose to override readFromFileWrapper:ofType:error: or readFromURL:ofType:error: instead. + // If you override either of these, you should also override -isEntireFileLoaded to return NO if the contents are lazily loaded. + outError.memory = NSError(domain: NSOSStatusErrorDomain, code: unimpErr, userInfo: nil) + return false + } + + +} + diff --git a/AVRsack/Images.xcassets/AppIcon.appiconset/Contents.json b/AVRsack/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2db2b1c --- /dev/null +++ b/AVRsack/Images.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/AVRsack/Info.plist b/AVRsack/Info.plist new file mode 100644 index 0000000..165a82e --- /dev/null +++ b/AVRsack/Info.plist @@ -0,0 +1,55 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + avrsackproj + + CFBundleTypeIconFile + + CFBundleTypeName + DocumentType + CFBundleTypeOSTypes + + ???? + + CFBundleTypeRole + Editor + NSDocumentClass + $(PRODUCT_MODULE_NAME).Document + + + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + org.aereperennius.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + Copyright © 2014 Aere Perennius. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/AVRsackTests/AVRsackTests.swift b/AVRsackTests/AVRsackTests.swift new file mode 100644 index 0000000..3190a5e --- /dev/null +++ b/AVRsackTests/AVRsackTests.swift @@ -0,0 +1,36 @@ +// +// AVRsackTests.swift +// AVRsackTests +// +// Created by Matthias Neeracher on 11/15/14. +// Copyright (c) 2014 Aere Perennius. All rights reserved. +// + +import Cocoa +import XCTest + +class AVRsackTests: 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. + XCTAssert(true, "Pass") + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measureBlock() { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/AVRsackTests/Info.plist b/AVRsackTests/Info.plist new file mode 100644 index 0000000..d94078d --- /dev/null +++ b/AVRsackTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + org.aereperennius.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + +