NSControl+RACTextSignalSupport.h 568 B

12345678910111213141516171819202122232425
  1. //
  2. // NSControl+RACTextSignalSupport.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Justin Spahr-Summers on 2013-03-08.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. @class RACSignal;
  10. @interface NSControl (RACTextSignalSupport)
  11. /// Observes a text-based control for changes.
  12. ///
  13. /// Using this method on a control without editable text is considered undefined
  14. /// behavior.
  15. ///
  16. /// Returns a signal which sends the current string value of the receiver, then
  17. /// the new value any time it changes.
  18. - (RACSignal *)rac_textSignal;
  19. @end