Skip to content

Instantly share code, notes, and snippets.

@aglee
aglee / gist:1267594
Created October 6, 2011 14:51
UNTESTED but I already know this is still not quite right. See http://www.mikeash.com/pyblog/key-value-observing-done-right.html for what could go wrong. Should use MAKVONotificationCenter to do the KVO. In any case, this code is just to give a general id
// MyViewTickler.h
#import <Cocoa/Cocoa.h>
@interface MyViewTickler : NSObject
{
}
+ (id)sharedInstance;