NSNotificationCenter+RACSupport.h 525 B

12345678910111213141516171819202122
  1. //
  2. // NSNotificationCenter+RACSupport.h
  3. // ReactiveObjC
  4. //
  5. // Created by Josh Abernathy on 5/10/12.
  6. // Copyright (c) 2012 GitHub. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class RACSignal<__covariant ValueType>;
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface NSNotificationCenter (RACSupport)
  12. // Sends the NSNotification every time the notification is posted.
  13. - (RACSignal<NSNotification *> *)rac_addObserverForName:(nullable NSString *)notificationName object:(nullable id)object;
  14. @end
  15. NS_ASSUME_NONNULL_END