Created
December 15, 2011 20:14
-
-
Save tmiz/1482655 to your computer and use it in GitHub Desktop.
KVOTest.cs 004
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using MonoMac.Foundation; | |
namespace KVOTestClock | |
{ | |
[Register("KVOTest")] | |
public class KVOTest : NSObject | |
{ | |
public KVOTest () | |
{ | |
new Timer((state => { | |
DateTime dt = DateTime.Now; | |
Title = (NSString)dt.ToString(); | |
} ) , null, 0, 1000); | |
} | |
[Export("title")] | |
NSString Title { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment