OLD | NEW |
1 //------------------------------------------------------------------------------
--------- | 1 //------------------------------------------------------------------------------
--------- |
2 // $Id: NSNotificationCenter+OCMAdditions.m 57 2010-07-19 06:14:27Z erik $ | 2 // $Id$ |
3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. | 3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. |
4 //------------------------------------------------------------------------------
--------- | 4 //------------------------------------------------------------------------------
--------- |
5 | 5 |
6 #import "NSNotificationCenter+OCMAdditions.h" | 6 #import "NSNotificationCenter+OCMAdditions.h" |
7 #import "OCObserverMockObject.h" | 7 #import "OCObserverMockObject.h" |
8 | 8 |
9 | 9 |
10 @implementation NSNotificationCenter(OCMAdditions) | 10 @implementation NSNotificationCenter(OCMAdditions) |
11 | 11 |
12 - (void)addMockObserver:(OCMockObserver *)notificationObserver name:(NSString *)
notificationName object:(id)notificationSender | 12 - (void)addMockObserver:(OCMockObserver *)notificationObserver name:(NSString *)
notificationName object:(id)notificationSender |
13 { | 13 { |
14 [self addObserver:notificationObserver selector:@selector(handleNotifica
tion:) name:notificationName object:notificationSender]; | 14 [self addObserver:notificationObserver selector:@selector(handleNotifica
tion:) name:notificationName object:notificationSender]; |
15 } | 15 } |
16 | 16 |
17 @end | 17 @end |
OLD | NEW |