[saver] New screensaver
This commit is contained in:
parent
4756f863fe
commit
ff853e2c06
4 changed files with 197 additions and 0 deletions
26
MetaballsSaver/Info.plist
Normal file
26
MetaballsSaver/Info.plist
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2017 Eryn Wells. All rights reserved.</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>MetaballsSaverView</string>
|
||||
</dict>
|
||||
</plist>
|
13
MetaballsSaver/MetaballsSaverView.h
Normal file
13
MetaballsSaver/MetaballsSaverView.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
//
|
||||
// MetaballsSaverView.h
|
||||
// MetaballsSaver
|
||||
//
|
||||
// Created by Eryn Wells on 8/16/17.
|
||||
// Copyright © 2017 Eryn Wells. All rights reserved.
|
||||
//
|
||||
|
||||
#import <ScreenSaver/ScreenSaver.h>
|
||||
|
||||
@interface MetaballsSaverView : ScreenSaverView
|
||||
|
||||
@end
|
52
MetaballsSaver/MetaballsSaverView.m
Normal file
52
MetaballsSaver/MetaballsSaverView.m
Normal file
|
@ -0,0 +1,52 @@
|
|||
//
|
||||
// MetaballsSaverView.m
|
||||
// MetaballsSaver
|
||||
//
|
||||
// Created by Eryn Wells on 8/16/17.
|
||||
// Copyright © 2017 Eryn Wells. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MetaballsSaverView.h"
|
||||
|
||||
@implementation MetaballsSaverView
|
||||
|
||||
- (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
|
Loading…
Add table
Add a link
Reference in a new issue