blob: 4ff6ee4cca768e7534a69addb3fa18f2e4a5bee4 [file] [log] [blame] [edit]
//
// UITextField+RACSignalSupport.h
// ReactiveCocoa
//
// Created by Josh Abernathy on 4/17/12.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RACSignal, RACChannelTerminal;
@interface UITextField (RACSignalSupport)
/// Creates and returns a signal for the text of the field. It always starts with
/// the current text. The signal sends next when the UIControlEventEditingChanged
/// or UIControlEventEditingDidBegin control event is fired on the control.
- (RACSignal *)rac_textSignal;
/// Creates a new RACChannel-based binding to the receiver.
///
/// Returns a RACChannelTerminal that sends the receiver's text whenever the
/// UIControlEventEditingChanged or UIControlEventEditingDidBegin control event
/// is fired, and sets the text to the values it receives.
- (RACChannelTerminal *)rac_newTextChannel;
@end