// // ShionObserver.m // Do Not Disturb // // Created by Chris Karr on 10/8/07. // Copyright 2007 __MyCompanyName__. All rights reserved. // #import "ShionObserver.h" #import "DNDDefines.h" @implementation ShionObserver - (ShionObserver *) init { if (self = [super init]) { [[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:@"DNDShionNotification" object:nil]; } return self; } - (NSString *) getName { return @"Shion (INSTEON)"; } - (void) scan { } - (void) handleNotification:(NSNotification *) msg { NSDictionary * note = [msg userInfo]; [[NSDistributedNotificationCenter defaultCenter] postNotificationName:DND_UPDATE object:@"ShionObserver" userInfo:note]; } @end