// // Notifier.m // PureMVC_ObjectiveC // // PureMVC Port to ObjectiveC by Brian Knorr // PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved. // #import "Notifier.h" #import "Facade.h" @implementation Notifier @synthesize facade; -(id)init { if (self = [super init]) { self.facade = [Facade getInstance]; } return self; } /** * Create and send an INotification. * *

* Keeps us from having to construct new INotification * instances in our implementation code. * @param notificationName the name of the notiification to send * @param body the body of the notification * @param type the type of the notification */ -(void)sendNotification:(NSString *)notificationName body:(id)body type:(NSString *)type { [facade sendNotification:notificationName body:body type:type]; } -(void)sendNotification:(NSString *)notificationName { [self sendNotification:notificationName body:nil type:nil]; } -(void)sendNotification:(NSString *)notificationName body:(id)body { [self sendNotification:notificationName body:body type:nil]; } -(void)sendNotification:(NSString *)notificationName type:(NSString *)type { [self sendNotification:notificationName body:nil type:type]; } -(void)dealloc { self.facade = nil; [super dealloc]; } @end