diff --git a/Aerial.xcodeproj/project.pbxproj b/Aerial.xcodeproj/project.pbxproj new file mode 100644 index 00000000..c86202a0 --- /dev/null +++ b/Aerial.xcodeproj/project.pbxproj @@ -0,0 +1,267 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + FACAF1A91BD9FC6000E539DC /* AerialView.h in Headers */ = {isa = PBXBuildFile; fileRef = FACAF1A81BD9FC6000E539DC /* AerialView.h */; }; + FACAF1AB1BD9FC6000E539DC /* AerialView.m in Sources */ = {isa = PBXBuildFile; fileRef = FACAF1AA1BD9FC6000E539DC /* AerialView.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + FACAF1A51BD9FC6000E539DC /* Aerial.saver */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Aerial.saver; sourceTree = BUILT_PRODUCTS_DIR; }; + FACAF1A81BD9FC6000E539DC /* AerialView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AerialView.h; sourceTree = ""; }; + FACAF1AA1BD9FC6000E539DC /* AerialView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AerialView.m; sourceTree = ""; }; + FACAF1AC1BD9FC6000E539DC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + FACAF1A11BD9FC6000E539DC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + FACAF19B1BD9FC6000E539DC = { + isa = PBXGroup; + children = ( + FACAF1A71BD9FC6000E539DC /* Aerial */, + FACAF1A61BD9FC6000E539DC /* Products */, + ); + sourceTree = ""; + }; + FACAF1A61BD9FC6000E539DC /* Products */ = { + isa = PBXGroup; + children = ( + FACAF1A51BD9FC6000E539DC /* Aerial.saver */, + ); + name = Products; + sourceTree = ""; + }; + FACAF1A71BD9FC6000E539DC /* Aerial */ = { + isa = PBXGroup; + children = ( + FACAF1A81BD9FC6000E539DC /* AerialView.h */, + FACAF1AA1BD9FC6000E539DC /* AerialView.m */, + FACAF1AC1BD9FC6000E539DC /* Info.plist */, + ); + path = Aerial; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + FACAF1A21BD9FC6000E539DC /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + FACAF1A91BD9FC6000E539DC /* AerialView.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + FACAF1A41BD9FC6000E539DC /* Aerial */ = { + isa = PBXNativeTarget; + buildConfigurationList = FACAF1AF1BD9FC6000E539DC /* Build configuration list for PBXNativeTarget "Aerial" */; + buildPhases = ( + FACAF1A01BD9FC6000E539DC /* Sources */, + FACAF1A11BD9FC6000E539DC /* Frameworks */, + FACAF1A21BD9FC6000E539DC /* Headers */, + FACAF1A31BD9FC6000E539DC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Aerial; + productName = Aerial; + productReference = FACAF1A51BD9FC6000E539DC /* Aerial.saver */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + FACAF19C1BD9FC6000E539DC /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0700; + ORGANIZATIONNAME = "John Coates"; + TargetAttributes = { + FACAF1A41BD9FC6000E539DC = { + CreatedOnToolsVersion = 7.0; + }; + }; + }; + buildConfigurationList = FACAF19F1BD9FC6000E539DC /* Build configuration list for PBXProject "Aerial" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = FACAF19B1BD9FC6000E539DC; + productRefGroup = FACAF1A61BD9FC6000E539DC /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + FACAF1A41BD9FC6000E539DC /* Aerial */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + FACAF1A31BD9FC6000E539DC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + FACAF1A01BD9FC6000E539DC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + FACAF1AB1BD9FC6000E539DC /* AerialView.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + FACAF1AD1BD9FC6000E539DC /* 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; + 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; + }; + name = Debug; + }; + FACAF1AE1BD9FC6000E539DC /* 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; + 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; + }; + FACAF1B01BD9FC6000E539DC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Aerial/Info.plist; + INSTALL_PATH = "$(HOME)/Library/Screen Savers"; + PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = saver; + }; + name = Debug; + }; + FACAF1B11BD9FC6000E539DC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Aerial/Info.plist; + INSTALL_PATH = "$(HOME)/Library/Screen Savers"; + PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = saver; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + FACAF19F1BD9FC6000E539DC /* Build configuration list for PBXProject "Aerial" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + FACAF1AD1BD9FC6000E539DC /* Debug */, + FACAF1AE1BD9FC6000E539DC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + FACAF1AF1BD9FC6000E539DC /* Build configuration list for PBXNativeTarget "Aerial" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + FACAF1B01BD9FC6000E539DC /* Debug */, + FACAF1B11BD9FC6000E539DC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = FACAF19C1BD9FC6000E539DC /* Project object */; +} diff --git a/Aerial.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Aerial.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..1a345427 --- /dev/null +++ b/Aerial.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Aerial.xcodeproj/xcuserdata/macbook.xcuserdatad/xcschemes/Aerial.xcscheme b/Aerial.xcodeproj/xcuserdata/macbook.xcuserdatad/xcschemes/Aerial.xcscheme new file mode 100644 index 00000000..dbd16b19 --- /dev/null +++ b/Aerial.xcodeproj/xcuserdata/macbook.xcuserdatad/xcschemes/Aerial.xcscheme @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Aerial.xcodeproj/xcuserdata/macbook.xcuserdatad/xcschemes/xcschememanagement.plist b/Aerial.xcodeproj/xcuserdata/macbook.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..895aea8f --- /dev/null +++ b/Aerial.xcodeproj/xcuserdata/macbook.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + Aerial.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + FACAF1A41BD9FC6000E539DC + + primary + + + + + diff --git a/Aerial/AerialView.h b/Aerial/AerialView.h new file mode 100644 index 00000000..0fc44f90 --- /dev/null +++ b/Aerial/AerialView.h @@ -0,0 +1,13 @@ +// +// AerialView.h +// Aerial +// +// Created by John Coates on 10/22/15. +// Copyright © 2015 John Coates. All rights reserved. +// + +#import + +@interface AerialView : ScreenSaverView + +@end diff --git a/Aerial/AerialView.m b/Aerial/AerialView.m new file mode 100644 index 00000000..0f65b63b --- /dev/null +++ b/Aerial/AerialView.m @@ -0,0 +1,52 @@ +// +// AerialView.m +// Aerial +// +// Created by John Coates on 10/22/15. +// Copyright © 2015 John Coates. All rights reserved. +// + +#import "AerialView.h" + +@implementation AerialView + +- (instancetype)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview +{ + self = [super initWithFrame:frame isPreview:isPreview]; + if (self) { + [self setAnimationTimeInterval:1/30.0]; + } + return self; +} + +- (void)startAnimation +{ + [super startAnimation]; +} + +- (void)stopAnimation +{ + [super stopAnimation]; +} + +- (void)drawRect:(NSRect)rect +{ + [super drawRect:rect]; +} + +- (void)animateOneFrame +{ + return; +} + +- (BOOL)hasConfigureSheet +{ + return NO; +} + +- (NSWindow*)configureSheet +{ + return nil; +} + +@end diff --git a/Aerial/Info.plist b/Aerial/Info.plist new file mode 100644 index 00000000..445ec3d6 --- /dev/null +++ b/Aerial/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + NSHumanReadableCopyright + Copyright © 2015 John Coates. All rights reserved. + NSPrincipalClass + AerialView + +