Sha256: df12acd86f09d198f15b0edbca25afe454f34a011b7796afaf3b8e2dc22d57a8
Contents?: true
Size: 1.29 KB
Versions: 34
Compression:
Stored size: 1.29 KB
Contents
// // Notifier.m // PureMVC_ObjectiveC // // PureMVC Port to ObjectiveC by Brian Knorr <brian.knorr@puremvc.org> // 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 <code>INotification</code>. * * <P> * 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
Version data entries
34 entries across 34 versions & 1 rubygems