1 //--------------------------------------------------------------------------------------- 2 // $Id$ 3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. 4 //--------------------------------------------------------------------------------------- 5 6 #import "OCMNotificationPoster.h" 7 8 9 @implementation OCMNotificationPoster 10 11 - (id)initWithNotification:(id)aNotification 12 { 13 self = [super init]; 14 notification = [aNotification retain]; 15 return self; 16 } 17 18 - (void)dealloc 19 { 20 [notification release]; 21 [super dealloc]; 22 } 23 24 - (void)handleInvocation:(NSInvocation *)anInvocation 25 { 26 [[NSNotificationCenter defaultCenter] postNotification:notification]; 27 } 28 29 30 @end 31