summaryrefslogtreecommitdiffstats
path: root/third_party/ocmock/OCMock/OCMNotificationPoster.m
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/ocmock/OCMock/OCMNotificationPoster.m')
-rw-r--r--third_party/ocmock/OCMock/OCMNotificationPoster.m30
1 files changed, 30 insertions, 0 deletions
diff --git a/third_party/ocmock/OCMock/OCMNotificationPoster.m b/third_party/ocmock/OCMock/OCMNotificationPoster.m
new file mode 100644
index 0000000..f4a18b8
--- /dev/null
+++ b/third_party/ocmock/OCMock/OCMNotificationPoster.m
@@ -0,0 +1,30 @@
+//---------------------------------------------------------------------------------------
+// $Id: OCMNotificationPoster.m 50 2009-07-16 06:48:19Z erik $
+// Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import "OCMNotificationPoster.h"
+
+
+@implementation OCMNotificationPoster
+
+- (id)initWithNotification:(id)aNotification
+{
+ [super init];
+ notification = [aNotification retain];
+ return self;
+}
+
+- (void)dealloc
+{
+ [notification release];
+ [super dealloc];
+}
+
+- (void)handleInvocation:(NSInvocation *)anInvocation
+{
+ [[NSNotificationCenter defaultCenter] postNotification:notification];
+}
+
+
+@end