blob: f4a18b8efb0b8eaf25b30843f2b039282404c318 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|