using System;
using System.Timers;

using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.CoreAnimation;

namespace GlossyClock
{
	public class ClockTimer : NSObject
	{
		NSTimer myTTimer;
		string property;
		
		public ClockTimer () : base()
		{
			outputString = DateTime.Now.ToString("hh:mm:ss");
			myTTimer = NSTimer.CreateRepeatingScheduledTimer (1,delegate { 
				outputString = DateTime.Now.ToString("hh:mm:ss");
			});
		}
		
		[Export("outputString")]
		public string outputString {
			get {
				return property; 
			}

			set {
				WillChangeValue("outputString");
				property = value;
				DidChangeValue("outputString");
			}
		}
	}
}

