UIControl+RACSignalSupportPrivate.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // UIControl+RACSignalSupportPrivate.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Uri Baghin on 06/08/2013.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class RACChannelTerminal;
  10. @interface UIControl (RACSignalSupportPrivate)
  11. // Adds a RACChannel-based interface to the receiver for the given
  12. // UIControlEvents and exposes it.
  13. //
  14. // controlEvents - A mask of UIControlEvents on which to send new values.
  15. // key - The key whose value should be read and set when a control
  16. // event fires and when a value is sent to the
  17. // RACChannelTerminal respectively.
  18. // nilValue - The value to be assigned to the key when `nil` is sent to the
  19. // RACChannelTerminal.
  20. //
  21. // Returns a RACChannelTerminal which will send future values from the receiver,
  22. // and update the receiver when values are sent to the terminal.
  23. - (RACChannelTerminal *)rac_channelForControlEvents:(UIControlEvents)controlEvents key:(NSString *)key nilValue:(id)nilValue;
  24. @end