RACChannelExamples.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // RACChannelExamples.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Uri Baghin on 30/12/2012.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. // The name of the shared examples for RACChannel and its subclasses.
  9. extern NSString * const RACChannelExamples;
  10. // A block of type `RACChannel * (^)(void)`, which should return a new
  11. // RACChannel.
  12. extern NSString * const RACChannelExampleCreateBlock;
  13. // The name of the shared examples for any RACChannel class that gets and sets
  14. // a property.
  15. extern NSString * const RACViewChannelExamples;
  16. // A block of type `NSObject * (^)(void)`, which should create a new test view
  17. // and return it.
  18. extern NSString * const RACViewChannelExampleCreateViewBlock;
  19. // A block of type `RACChannelTerminal * (^)(NSObject *view)`, which should
  20. // create a new RACChannel to the given test view and return an terminal.
  21. extern NSString * const RACViewChannelExampleCreateTerminalBlock;
  22. // The key path that will be read/written in RACViewChannelExamples. This
  23. // must lead to an NSNumber or numeric primitive property.
  24. extern NSString * const RACViewChannelExampleKeyPath;
  25. // A block of type `void (^)(NSObject *view, NSNumber *value)`, which should
  26. // change the given test view's value to the given one.
  27. extern NSString * const RACViewChannelExampleSetViewValueBlock;