RACDelegateProxy.h 808 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RACDelegateProxy.h
  3. // ReactiveCocoa
  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;
  10. // A private delegate object suitable for using
  11. // -rac_signalForSelector:fromProtocol: upon.
  12. @interface RACDelegateProxy : NSObject
  13. // The delegate to which messages should be forwarded if not handled by
  14. // any -signalForSelector: applications.
  15. @property (nonatomic, unsafe_unretained) id rac_proxiedDelegate;
  16. // Creates a delegate proxy capable of responding to selectors from `protocol`.
  17. - (instancetype)initWithProtocol:(Protocol *)protocol;
  18. // Calls -rac_signalForSelector:fromProtocol: using the `protocol` specified
  19. // during initialization.
  20. - (RACSignal *)signalForSelector:(SEL)selector;
  21. @end