Home | History | Annotate | Download | only in OCMock
      1 //---------------------------------------------------------------------------------------
      2 //  $Id$
      3 //  Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
      4 //---------------------------------------------------------------------------------------
      5 
      6 #import "NSNotificationCenter+OCMAdditions.h"
      7 #import "OCObserverMockObject.h"
      8 
      9 
     10 @implementation NSNotificationCenter(OCMAdditions)
     11 
     12 - (void)addMockObserver:(OCMockObserver *)notificationObserver name:(NSString *)notificationName object:(id)notificationSender
     13 {
     14 	[self addObserver:notificationObserver selector:@selector(handleNotification:) name:notificationName object:notificationSender];
     15 }
     16 
     17 @end
     18