Permalink
Browse files

bxc#10532: TwoMinuteGrowler: remove

  • Loading branch information...
abock committed Feb 25, 2013
1 parent 042652c commit 3dd7298d13bb7a11edaded6e7c3215cb039959e4
View
@@ -49,7 +49,6 @@ XDIRS = \
SearchField \
SkinnableApp \
StillMotion \
- TwoMinuteGrowler \
WhereIsMyMac \
VillainTracker
@@ -1,27 +0,0 @@
-using System;
-using System.Drawing;
-using MonoMac.Foundation;
-using MonoMac.AppKit;
-
-
-namespace TwoMinuteGrowler {
- public partial class AppDelegate : NSApplicationDelegate {
- MainWindowController mainWindowController;
-
- public AppDelegate ()
- {
- }
-
- public override void FinishedLaunching (NSObject notification)
- {
- mainWindowController = new MainWindowController ();
- mainWindowController.Window.MakeKeyAndOrderFront (this);
- }
-
- public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
- {
- return true;
- }
- }
-}
-
@@ -1,61 +0,0 @@
-using System;
-using System.Timers;
-using System.Threading;
-
-using MonoMac.Foundation;
-using MonoMac.AppKit;
-using MonoMac.Growl;
-
-namespace TwoMinuteGrowler
-{
- public class CountDownTimer : NSObject {
- NSTimer myTTimer;
- string timer;
- TimeSpan currentTime;
-
- public CountDownTimer () : base()
- {
- currentTime = TimeSpan.FromMinutes (2);
- TimeLeft = formatTimeSpan (currentTime);
- }
-
- public void Start ()
- {
- currentTime = TimeSpan.FromMinutes (2);
- TimeLeft = formatTimeSpan (currentTime);
-
- myTTimer = NSTimer.CreateRepeatingScheduledTimer (1, delegate {
- currentTime = currentTime - TimeSpan.FromSeconds (1);
- TimeLeft = formatTimeSpan (currentTime);
- });
- }
-
- private string formatTimeSpan (TimeSpan ts)
- {
- return String.Format ("{0}:{1:00}", ts.Minutes, ts.Seconds);
- }
-
- public void Stop ()
- {
- myTTimer.Invalidate ();
- }
-
- [Export ("timeLeft")]
- public string TimeLeft {
- get {
- return timer;
- }
- set {
- WillChangeValue ("timeLeft");
- timer = value;
- DidChangeValue ("timeLeft");
- }
- }
-
- public TimeSpan TimerMark {
- get { return currentTime; }
- }
-
- }
-}
-
@@ -1,20 +0,0 @@
-<?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>TicketVersion</key>
- <integer>1</integer>
- <key>AllNotifications</key>
- <array>
- <string>Start</string>
- <string>Stop</string>
- <string>Info</string>
- </array>
- <key>DefaultNotifications</key>
- <array>
- <string>Start</string>
- <string>Stop</string>
- <string>Info</string>
- </array>
-</dict>
-</plist>
@@ -1,18 +0,0 @@
-<?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>CFBundleIdentifier</key>
- <string>com.yourcompany.TwoMinuteGrowler</string>
- <key>CFBundleName</key>
- <string>TwoMinuteGrowler</string>
- <key>CFBundleVersion</key>
- <string>1</string>
- <key>LSMinimumSystemVersion</key>
- <string>10.6</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
-</dict>
-</plist>
View
@@ -1,24 +0,0 @@
-using System;
-using System.Runtime;
-using System.IO;
-using System.Drawing;
-using MonoMac.Foundation;
-using MonoMac.AppKit;
-using MonoMac.ObjCRuntime;
-
-namespace TwoMinuteGrowler {
- class MainClass {
- static void Main ( string[] args ) {
-
- var baseAppPath = Directory.GetParent (Directory.GetParent (System.AppDomain.CurrentDomain.BaseDirectory).ToString ());
- //var growlPath = baseAppPath + "/Frameworks/Growl-WithInstaller.framework/Growl-WithInstaller";
- var growlPath = baseAppPath + "/Frameworks/Growl.framework/Growl";
-
- Dlfcn.dlopen (growlPath, 0);
-
- NSApplication.Init ();
- NSApplication.Main (args);
- }
- }
-}
-
Oops, something went wrong.

0 comments on commit 3dd7298

Please sign in to comment.