//
//  UISearchBarDataSource.m
//

#import "UISearchBarDataProvider.h"

@implementation UISearchBarDataProvider

- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText {
	[self willChangeValueForKey:@"liveText"];
	[self didChangeValueForKey:@"liveText"];
}

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
	[self willChangeValueForKey:@"text"];
	[self didChangeValueForKey:@"text"];
}

- (NSString *)text {
	return _searchBar.text;
}

- (NSString *)liveText {
	return _searchBar.text;
}

@end
