Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build
*.mode1v3
*.pbxuser
.DS_Store

WebSaver.xcodeproj/project.xcworkspace
WebSaver.xcodeproj/xcuserdata
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Notes
-----

* Change the "Product Name" in the "Web" target if you are distributing a screensaver to prevent conflicts with others.
* thumbnail.png – 90 x 58 pixels | thumbnail@2x.png – 180 x 116 pixels

License
-------
Expand Down
10 changes: 10 additions & 0 deletions WebSaver.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
113E8AA9187EC7740093F272 /* thumbnail@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 113E8AA7187EC7740093F272 /* thumbnail@2x.png */; };
113E8AAA187EC7740093F272 /* thumbnail.png in Resources */ = {isa = PBXBuildFile; fileRef = 113E8AA8187EC7740093F272 /* thumbnail.png */; };
4D856DCE10845D98006C781A /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D856DCD10845D98006C781A /* WebKit.framework */; };
8D255AC70486D3F9007BF209 /* WebSaver_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 32DBCFA80370C50100C91783 /* WebSaver_Prefix.pch */; };
8D255AC80486D3F9007BF209 /* WebSaverView.h in Headers */ = {isa = PBXBuildFile; fileRef = F50079790118B23001CA0E54 /* WebSaverView.h */; };
Expand All @@ -23,6 +25,8 @@
089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
089C167FFE841241C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
113E8AA7187EC7740093F272 /* thumbnail@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "thumbnail@2x.png"; sourceTree = "<group>"; };
113E8AA8187EC7740093F272 /* thumbnail.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = thumbnail.png; sourceTree = "<group>"; };
32DBCFA80370C50100C91783 /* WebSaver_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebSaver_Prefix.pch; sourceTree = "<group>"; };
4D856DCD10845D98006C781A /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = /System/Library/Frameworks/WebKit.framework; sourceTree = "<absolute>"; };
8D255AD20486D3F9007BF209 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -70,6 +74,8 @@
089C167CFE841241C02AAC07 /* Resources */ = {
isa = PBXGroup;
children = (
113E8AA7187EC7740093F272 /* thumbnail@2x.png */,
113E8AA8187EC7740093F272 /* thumbnail.png */,
EA4A502A1563C91F005E4CCA /* ConfigureSheet.nib */,
8D255AD20486D3F9007BF209 /* Info.plist */,
089C167DFE841241C02AAC07 /* InfoPlist.strings */,
Expand Down Expand Up @@ -185,8 +191,10 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
113E8AAA187EC7740093F272 /* thumbnail.png in Resources */,
8D255ACA0486D3F9007BF209 /* InfoPlist.strings in Resources */,
EA4A502B1563C91F005E4CCA /* ConfigureSheet.nib in Resources */,
113E8AA9187EC7740093F272 /* thumbnail@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -237,6 +245,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Screen Savers";
PRODUCT_NAME = WebSaver;
SDKROOT = macosx;
WRAPPER_EXTENSION = saver;
ZERO_LINK = YES;
};
Expand All @@ -253,6 +262,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Screen Savers";
PRODUCT_NAME = WebSaver;
SDKROOT = macosx;
WRAPPER_EXTENSION = saver;
};
name = Release;
Expand Down
8 changes: 6 additions & 2 deletions WebSaverView.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ @implementation WebSaverView
static NSString * const REFRESH_INTERVAL_KEY = @"RefreshInterval";
static NSString * const REFRESH_UNITS_KEY = @"RefreshUnits";

static NSString * const DEFAULT_URL = @"https://github.com/tlrobinson/WebSaver";
static NSString * const DEFAULT_USERSCRIPT = @"document.body.style.backgroundColor = 'green';";
static NSString * const DEFAULT_URL = @"http://webglsamples.googlecode.com/hg/aquarium/aquarium.html";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this URL has changed to http://webglsamples.org/aquarium/aquarium.html

static NSString * const DEFAULT_USERSCRIPT = @"/*document.body.style.backgroundColor = 'green';*/";
static double const DEFAULT_REFRESH_INTERVAL = 1.0;
static long const DEFAULT_REFRESH_UNITS = REFRESH_MINUTES;

Expand All @@ -47,6 +47,10 @@ - (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
nil]];

webView = [[WebView alloc] initWithFrame:[self bounds] frameName:nil groupName:nil];
WebPreferences *p = [webView preferences];
if ([p respondsToSelector:@selector(setWebGLEnabled:)]) {
[p setWebGLEnabled:YES];
}
[webView setFrameLoadDelegate:self];
[self addSubview:webView];

Expand Down
42 changes: 0 additions & 42 deletions build/Release/Web.saver/Contents/Info.plist

This file was deleted.

Binary file removed build/Release/Web.saver/Contents/MacOS/Web
Binary file not shown.
Binary file added thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added thumbnail@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.