diff --git a/Clock/Clock.h b/Clock/Clock.h deleted file mode 100644 index e1f6190..0000000 --- a/Clock/Clock.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// WebSaverView.h -// WebSaver -// -// Created by Thomas Robinson on 10/13/09. -// Modified by Pekka Nikander in May 2012. -// Copyright (c) 2013, Thomas Robinson. All rights reserved. -// Copyright (c) 2012, Senseg. All rights reserved. -// - -#import - -@interface Clock : ScreenSaverView - -@end diff --git a/Example/AppDelegate.m b/Example/AppDelegate.m index 7390662..d00c966 100644 --- a/Example/AppDelegate.m +++ b/Example/AppDelegate.m @@ -16,7 +16,7 @@ @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application -// Clock *clock = [[Clock alloc] initWithFrame:window isPreview:YES]; +// Sundial *Sundial = [[Sundial alloc] initWithFrame:window isPreview:YES]; } diff --git a/Example/ViewController.m b/Example/ViewController.m index 7f73d80..c91d22e 100644 --- a/Example/ViewController.m +++ b/Example/ViewController.m @@ -7,11 +7,11 @@ // #import "ViewController.h" -#import "Clock.h" +#import "Sundial.h" @interface ViewController() -@property (nonatomic, strong) Clock *clock; +@property (nonatomic, strong) Sundial *Sundial; @end @@ -20,10 +20,10 @@ @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; - self.clock = [[Clock alloc] initWithFrame:self.view.bounds isPreview:YES]; - [self.clock setAutoresizingMask:NSViewHeightSizable|NSViewWidthSizable]; - [self.view addSubview:self.clock]; - [self.clock startAnimation]; + self.Sundial = [[Sundial alloc] initWithFrame:self.view.bounds isPreview:YES]; + [self.Sundial setAutoresizingMask:NSViewHeightSizable|NSViewWidthSizable]; + [self.view addSubview:self.Sundial]; + [self.Sundial startAnimation]; } diff --git a/Clock.xcodeproj/project.pbxproj b/Sundial.xcodeproj/project.pbxproj similarity index 90% rename from Clock.xcodeproj/project.pbxproj rename to Sundial.xcodeproj/project.pbxproj index 0b8de97..9eac033 100644 --- a/Clock.xcodeproj/project.pbxproj +++ b/Sundial.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - BC6B62F01FB9C2D7002AD625 /* Clock.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B62EE1FB9C2D7002AD625 /* Clock.m */; }; + BC6B62F01FB9C2D7002AD625 /* Sundial.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B62EE1FB9C2D7002AD625 /* Sundial.m */; }; BC6B62FB1FBA94E0002AD625 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B62FA1FBA94E0002AD625 /* AppDelegate.m */; }; BC6B62FE1FBA94E0002AD625 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B62FD1FBA94E0002AD625 /* ViewController.m */; }; BC6B63001FBA94E0002AD625 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BC6B62FF1FBA94E0002AD625 /* Assets.xcassets */; }; @@ -19,10 +19,10 @@ BC6B63151FBAF302002AD625 /* NSBezierPath+quartz.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B63131FBAF302002AD625 /* NSBezierPath+quartz.m */; }; BC6B63181FBB099D002AD625 /* ScreenSaver.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC6B63171FBB0994002AD625 /* ScreenSaver.framework */; }; BC6B631A1FBB09C1002AD625 /* Quartz.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC6B63191FBB09BE002AD625 /* Quartz.framework */; }; - BC6B631D1FBB0B61002AD625 /* Clock.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6B62ED1FB9C2D7002AD625 /* Clock.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BC6B631D1FBB0B61002AD625 /* Sundial.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6B62ED1FB9C2D7002AD625 /* Sundial.h */; settings = {ATTRIBUTES = (Public, ); }; }; BC6B631F1FBB0DF9002AD625 /* NSBezierPath+quartz.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B63131FBAF302002AD625 /* NSBezierPath+quartz.m */; }; BC6B63251FBB2EB3002AD625 /* DialView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B630C1FBAA5E0002AD625 /* DialView.m */; }; - BC6B632B1FBB4E3E002AD625 /* Clock.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B62EE1FB9C2D7002AD625 /* Clock.m */; }; + BC6B632B1FBB4E3E002AD625 /* Sundial.m in Sources */ = {isa = PBXBuildFile; fileRef = BC6B62EE1FB9C2D7002AD625 /* Sundial.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -36,10 +36,10 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - BC6B62AD1FB9BFD5002AD625 /* Clock.saver */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Clock.saver; sourceTree = BUILT_PRODUCTS_DIR; }; + BC6B62AD1FB9BFD5002AD625 /* Sundial.saver */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Sundial.saver; sourceTree = BUILT_PRODUCTS_DIR; }; BC6B62B41FB9BFD5002AD625 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - BC6B62ED1FB9C2D7002AD625 /* Clock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Clock.h; sourceTree = ""; }; - BC6B62EE1FB9C2D7002AD625 /* Clock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Clock.m; sourceTree = ""; }; + BC6B62ED1FB9C2D7002AD625 /* Sundial.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sundial.h; sourceTree = ""; }; + BC6B62EE1FB9C2D7002AD625 /* Sundial.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Sundial.m; sourceTree = ""; }; BC6B62F71FBA94E0002AD625 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; BC6B62F91FBA94E0002AD625 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; BC6B62FA1FBA94E0002AD625 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; @@ -81,7 +81,7 @@ BC6B62A31FB9BFD5002AD625 = { isa = PBXGroup; children = ( - BC6B62AF1FB9BFD5002AD625 /* Clock */, + BC6B62AF1FB9BFD5002AD625 /* Sundial */, BC6B62F81FBA94E0002AD625 /* Example */, BC6B62AE1FB9BFD5002AD625 /* Products */, BC6B63161FBB0994002AD625 /* Frameworks */, @@ -91,24 +91,24 @@ BC6B62AE1FB9BFD5002AD625 /* Products */ = { isa = PBXGroup; children = ( - BC6B62AD1FB9BFD5002AD625 /* Clock.saver */, + BC6B62AD1FB9BFD5002AD625 /* Sundial.saver */, BC6B62F71FBA94E0002AD625 /* Example.app */, ); name = Products; sourceTree = ""; }; - BC6B62AF1FB9BFD5002AD625 /* Clock */ = { + BC6B62AF1FB9BFD5002AD625 /* Sundial */ = { isa = PBXGroup; children = ( - BC6B62ED1FB9C2D7002AD625 /* Clock.h */, - BC6B62EE1FB9C2D7002AD625 /* Clock.m */, + BC6B62ED1FB9C2D7002AD625 /* Sundial.h */, + BC6B62EE1FB9C2D7002AD625 /* Sundial.m */, BC6B62B41FB9BFD5002AD625 /* Info.plist */, BC6B630B1FBAA5E0002AD625 /* DialView.h */, BC6B630C1FBAA5E0002AD625 /* DialView.m */, BC6B63121FBAF302002AD625 /* NSBezierPath+quartz.h */, BC6B63131FBAF302002AD625 /* NSBezierPath+quartz.m */, ); - path = Clock; + path = Sundial; sourceTree = ""; }; BC6B62F81FBA94E0002AD625 /* Example */ = { @@ -143,7 +143,7 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - BC6B631D1FBB0B61002AD625 /* Clock.h in Headers */, + BC6B631D1FBB0B61002AD625 /* Sundial.h in Headers */, BC6B63141FBAF302002AD625 /* NSBezierPath+quartz.h in Headers */, BC6B630D1FBAA5E0002AD625 /* DialView.h in Headers */, ); @@ -152,9 +152,9 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - BC6B62AC1FB9BFD5002AD625 /* Clock */ = { + BC6B62AC1FB9BFD5002AD625 /* Sundial */ = { isa = PBXNativeTarget; - buildConfigurationList = BC6B62B71FB9BFD5002AD625 /* Build configuration list for PBXNativeTarget "Clock" */; + buildConfigurationList = BC6B62B71FB9BFD5002AD625 /* Build configuration list for PBXNativeTarget "Sundial" */; buildPhases = ( BC6B62A81FB9BFD5002AD625 /* Sources */, BC6B62A91FB9BFD5002AD625 /* Frameworks */, @@ -166,9 +166,9 @@ ); dependencies = ( ); - name = Clock; + name = Sundial; productName = Clock; - productReference = BC6B62AD1FB9BFD5002AD625 /* Clock.saver */; + productReference = BC6B62AD1FB9BFD5002AD625 /* Sundial.saver */; productType = "com.apple.product-type.bundle"; }; BC6B62F61FBA94E0002AD625 /* Example */ = { @@ -208,7 +208,7 @@ }; }; }; - buildConfigurationList = BC6B62A71FB9BFD5002AD625 /* Build configuration list for PBXProject "Clock" */; + buildConfigurationList = BC6B62A71FB9BFD5002AD625 /* Build configuration list for PBXProject "Sundial" */; compatibilityVersion = "Xcode 8.0"; developmentRegion = en; hasScannedForEncodings = 0; @@ -221,7 +221,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - BC6B62AC1FB9BFD5002AD625 /* Clock */, + BC6B62AC1FB9BFD5002AD625 /* Sundial */, BC6B62F61FBA94E0002AD625 /* Example */, ); }; @@ -267,7 +267,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - BC6B62F01FB9C2D7002AD625 /* Clock.m in Sources */, + BC6B62F01FB9C2D7002AD625 /* Sundial.m in Sources */, BC6B63151FBAF302002AD625 /* NSBezierPath+quartz.m in Sources */, BC6B630E1FBAA5E0002AD625 /* DialView.m in Sources */, ); @@ -277,7 +277,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - BC6B632B1FBB4E3E002AD625 /* Clock.m in Sources */, + BC6B632B1FBB4E3E002AD625 /* Sundial.m in Sources */, BC6B63251FBB2EB3002AD625 /* DialView.m in Sources */, BC6B631F1FBB0DF9002AD625 /* NSBezierPath+quartz.m in Sources */, BC6B62FE1FBA94E0002AD625 /* ViewController.m in Sources */, @@ -291,7 +291,7 @@ /* Begin PBXTargetDependency section */ BC6B631C1FBB0A21002AD625 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = BC6B62AC1FB9BFD5002AD625 /* Clock */; + target = BC6B62AC1FB9BFD5002AD625 /* Sundial */; targetProxy = BC6B631B1FBB0A21002AD625 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -417,11 +417,11 @@ ARCHS = "$(ARCHS_STANDARD)"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Clock/Info.plist; + INFOPLIST_FILE = Sundial/Info.plist; INSTALL_PATH = "$(HOME)/Library/Screen Savers"; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ""; - PRODUCT_BUNDLE_IDENTIFIER = PW.Clock; + PRODUCT_BUNDLE_IDENTIFIER = com.sundial.pw; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = saver; }; @@ -433,10 +433,10 @@ ARCHS = "$(ARCHS_STANDARD)"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - INFOPLIST_FILE = Clock/Info.plist; + INFOPLIST_FILE = Sundial/Info.plist; INSTALL_PATH = "$(HOME)/Library/Screen Savers"; OTHER_LDFLAGS = ""; - PRODUCT_BUNDLE_IDENTIFIER = PW.Clock; + PRODUCT_BUNDLE_IDENTIFIER = com.sundial.pw; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = saver; }; @@ -475,7 +475,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - BC6B62A71FB9BFD5002AD625 /* Build configuration list for PBXProject "Clock" */ = { + BC6B62A71FB9BFD5002AD625 /* Build configuration list for PBXProject "Sundial" */ = { isa = XCConfigurationList; buildConfigurations = ( BC6B62B51FB9BFD5002AD625 /* Debug */, @@ -484,7 +484,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - BC6B62B71FB9BFD5002AD625 /* Build configuration list for PBXNativeTarget "Clock" */ = { + BC6B62B71FB9BFD5002AD625 /* Build configuration list for PBXNativeTarget "Sundial" */ = { isa = XCConfigurationList; buildConfigurations = ( BC6B62B81FB9BFD5002AD625 /* Debug */, diff --git a/Clock.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Sundial.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 57% rename from Clock.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Sundial.xcodeproj/project.xcworkspace/contents.xcworkspacedata index a70b98a..8550040 100644 --- a/Clock.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/Sundial.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:/Users/wangweicheng/Documents/Clock/Sundial.xcodeproj"> diff --git a/Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist similarity index 100% rename from Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist rename to Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist diff --git a/Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Clock.xcscheme b/Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Clock.xcscheme similarity index 84% rename from Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Clock.xcscheme rename to Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Clock.xcscheme index 1750b0a..f84982a 100644 --- a/Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Clock.xcscheme +++ b/Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Clock.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "Sundial.saver" + BlueprintName = "Sundial" + ReferencedContainer = "container:Sundial.xcodeproj"> @@ -48,9 +48,9 @@ + BuildableName = "Sundial.saver" + BlueprintName = "Sundial" + ReferencedContainer = "container:Sundial.xcodeproj"> @@ -66,9 +66,9 @@ + BuildableName = "Sundial.saver" + BlueprintName = "Sundial" + ReferencedContainer = "container:Sundial.xcodeproj"> diff --git a/Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Example.xcscheme b/Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Example.xcscheme similarity index 92% rename from Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Example.xcscheme rename to Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Example.xcscheme index 027defe..24c5fa7 100644 --- a/Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Example.xcscheme +++ b/Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/Example.xcscheme @@ -17,7 +17,7 @@ BlueprintIdentifier = "BC6B62F61FBA94E0002AD625" BuildableName = "Example.app" BlueprintName = "Example" - ReferencedContainer = "container:Clock.xcodeproj"> + ReferencedContainer = "container:Sundial.xcodeproj"> @@ -36,7 +36,7 @@ BlueprintIdentifier = "BC6B62F61FBA94E0002AD625" BuildableName = "Example.app" BlueprintName = "Example" - ReferencedContainer = "container:Clock.xcodeproj"> + ReferencedContainer = "container:Sundial.xcodeproj"> @@ -60,7 +60,7 @@ BlueprintIdentifier = "BC6B62F61FBA94E0002AD625" BuildableName = "Example.app" BlueprintName = "Example" - ReferencedContainer = "container:Clock.xcodeproj"> + ReferencedContainer = "container:Sundial.xcodeproj"> @@ -79,7 +79,7 @@ BlueprintIdentifier = "BC6B62F61FBA94E0002AD625" BuildableName = "Example.app" BlueprintName = "Example" - ReferencedContainer = "container:Clock.xcodeproj"> + ReferencedContainer = "container:Sundial.xcodeproj"> diff --git a/Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/xcschememanagement.plist b/Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/xcschememanagement.plist similarity index 100% rename from Clock.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/xcschememanagement.plist rename to Sundial.xcodeproj/xcuserdata/weicheng.xcuserdatad/xcschemes/xcschememanagement.plist diff --git a/Clock/DialView.h b/Sundial/DialView.h similarity index 96% rename from Clock/DialView.h rename to Sundial/DialView.h index bb81431..2aa44b0 100644 --- a/Clock/DialView.h +++ b/Sundial/DialView.h @@ -1,6 +1,6 @@ // // DiallView.h -// Clock +// Sundial // // Created by wangweicheng on 2017/11/14. // Copyright © 2017年 wangweicheng. All rights reserved. diff --git a/Clock/DialView.m b/Sundial/DialView.m similarity index 99% rename from Clock/DialView.m rename to Sundial/DialView.m index ee24a5b..4581778 100644 --- a/Clock/DialView.m +++ b/Sundial/DialView.m @@ -1,6 +1,6 @@ // // DiallView.m -// Clock +// Sundial // // Created by wangweicheng on 2017/11/14. // Copyright © 2017年 wangweicheng. All rights reserved. diff --git a/Clock/Info.plist b/Sundial/Info.plist similarity index 96% rename from Clock/Info.plist rename to Sundial/Info.plist index fbe5094..2b03c20 100644 --- a/Clock/Info.plist +++ b/Sundial/Info.plist @@ -21,6 +21,6 @@ NSHumanReadableCopyright Copyright © 2017年 wangweicheng. All rights reserved. NSPrincipalClass - Clock.Clock + Sundial.Sundial diff --git a/Clock/NSBezierPath+quartz.h b/Sundial/NSBezierPath+quartz.h similarity index 95% rename from Clock/NSBezierPath+quartz.h rename to Sundial/NSBezierPath+quartz.h index 41e3c04..0ffee79 100644 --- a/Clock/NSBezierPath+quartz.h +++ b/Sundial/NSBezierPath+quartz.h @@ -1,6 +1,6 @@ // // NSBezierPath+quartz.h -// Clock +// Sundial // // Created by wangweicheng on 2017/11/14. // Copyright © 2017年 wangweicheng. All rights reserved. diff --git a/Clock/NSBezierPath+quartz.m b/Sundial/NSBezierPath+quartz.m similarity index 99% rename from Clock/NSBezierPath+quartz.m rename to Sundial/NSBezierPath+quartz.m index adc3b5a..225c96f 100644 --- a/Clock/NSBezierPath+quartz.m +++ b/Sundial/NSBezierPath+quartz.m @@ -1,6 +1,6 @@ // // NSBezierPath+quartz.m -// Clock +// Sundial // // Created by wangweicheng on 2017/11/14. // Copyright © 2017年 wangweicheng. All rights reserved. diff --git a/Sundial/Sundial.h b/Sundial/Sundial.h new file mode 100644 index 0000000..62a2703 --- /dev/null +++ b/Sundial/Sundial.h @@ -0,0 +1,13 @@ +// +// Sundial.h +// Sundial +// +// Created by wangweicheng on 2017/11/14. +// Copyright © 2017年 wangweicheng. All rights reserved. +// + +#import + +@interface Sundial : ScreenSaverView + +@end diff --git a/Clock/Clock.m b/Sundial/Sundial.m similarity index 95% rename from Clock/Clock.m rename to Sundial/Sundial.m index 4feee49..c8995a7 100644 --- a/Clock/Clock.m +++ b/Sundial/Sundial.m @@ -1,20 +1,17 @@ // -// WebSaverView.m -// WebSaver +// Sundial.h +// Sundial // -// Created by Thomas Robinson on 10/13/09. -// Modified by Pekka Nikander in May 2012. -// Copyright (c) 2013, Thomas Robinson. All rights reserved. -// Copyright (c) 2012, Senseg. All rights reserved. +// Created by wangweicheng on 2017/11/14. +// Copyright © 2017年 wangweicheng. All rights reserved. // -#import "Clock.h" +#import "Sundial.h" #import "DialView.h" #import #import "NSBezierPath+quartz.h" -//#import "TaiChiView.h" -@interface Clock () +@interface Sundial () { CGFloat _rotation; float _rate; @@ -34,7 +31,7 @@ @interface Clock () @end -@implementation Clock +@implementation Sundial - (instancetype)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview { if(self = [super initWithFrame:frame isPreview:isPreview]) {