RACDelegateProxy.h 878 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // RACDelegateProxy.h
  3. // ReactiveObjC
  4. //
  5. // Created by Cody Krieger on 5/19/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class RACSignal<__covariant ValueType>;
  10. NS_ASSUME_NONNULL_BEGIN
  11. // A private delegate object suitable for using
  12. // -rac_signalForSelector:fromProtocol: upon.
  13. @interface RACDelegateProxy : NSObject
  14. // The delegate to which messages should be forwarded if not handled by
  15. // any -signalForSelector: applications.
  16. @property (nonatomic, unsafe_unretained) id rac_proxiedDelegate;
  17. // Creates a delegate proxy capable of responding to selectors from `protocol`.
  18. - (instancetype)initWithProtocol:(Protocol *)protocol;
  19. // Calls -rac_signalForSelector:fromProtocol: using the `protocol` specified
  20. // during initialization.
  21. - (RACSignal *)signalForSelector:(SEL)selector;
  22. @end
  23. NS_ASSUME_NONNULL_END