Created
April 8, 2013 00:35
-
-
Save codecaffeine/5333319 to your computer and use it in GitHub Desktop.
RACable(textView.text) vs. matchedTextView.rac_textSignal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface CAFMatchedTextViewController () | |
@property (strong, nonatomic) IBOutlet UITextView *matchedTextView; | |
@end | |
@implementation CAFMatchedTextViewController { | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
[self.matchedTextView.rac_textSignal subscribeNext:^(NSString *string) { | |
NSLog(@"via rac_textSignal '%@'", string); | |
}]; | |
[RACAble(self.matchedTextView.text) subscribeNext:^(NSString *string) { | |
NSLog(@"via RACAble '%@'", string); | |
}]; | |
self.matchedTextView.text = @"asdf"; | |
}; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-04-07 20:31:00.823 MyApp[96042:c07] via rac_textSignal '' | |
2013-04-07 20:31:00.829 MyApp[96042:c07] via RACAble 'asdf' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I assumed that these would both log 'asdf', but I wonder why rac_textSignal isn’t.