TBKeyPathSearchController.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // TBKeyPathSearchController.h
  3. // TBTweakViewController
  4. //
  5. // Created by Tanner on 3/23/17.
  6. // Copyright © 2017 Tanner Bennett. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "TBKeyPathToolbar.h"
  10. #import "FLEXMethod.h"
  11. @protocol TBKeyPathSearchControllerDelegate <NSObject>
  12. @property (nonatomic, readonly) UITableView *tableView;
  13. @property (nonatomic, readonly) UISearchBar *searchBar;
  14. @property (nonatomic, readonly) UINavigationController *navigationController;
  15. @property (nonatomic, readonly) NSString *longPressItemSELPrefix;
  16. - (void)didSelectMethod:(FLEXMethod *)method;
  17. @end
  18. @interface TBKeyPathSearchController : NSObject <UISearchBarDelegate, UITableViewDataSource, UITableViewDelegate>
  19. + (instancetype)delegate:(id<TBKeyPathSearchControllerDelegate>)delegate;
  20. @property (nonatomic) TBKeyPathToolbar *toolbar;
  21. - (void)longPressedRect:(CGRect)rect at:(NSIndexPath *)indexPath;
  22. - (void)didSelectKeyPathOption:(NSString *)text;
  23. - (void)didSelectSuperclass:(NSString *)name;
  24. - (void)didPressButton:(NSString *)text insertInto:(UISearchBar *)searchBar;
  25. @end