Skip to content

Commit e63f2ee

Browse files
committed
Prefix some categories, fix #496
1 parent 46c6dcb commit e63f2ee

27 files changed

+75
-72
lines changed

Classes/Core/Views/Carousel/FLEXCarouselCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ - (void)installConstraints {
7777
self.selectionIndicatorStripe.translatesAutoresizingMaskIntoConstraints = NO;
7878

7979
UIView *superview = self.contentView;
80-
[self.titleLabel pinEdgesToSuperviewWithInsets:UIEdgeInsetsMake(10, 15, 8 + stripeHeight, 15)];
80+
[self.titleLabel flex_pinEdgesToSuperviewWithInsets:UIEdgeInsetsMake(10, 15, 8 + stripeHeight, 15)];
8181

8282
[self.selectionIndicatorStripe.leadingAnchor constraintEqualToAnchor:superview.leadingAnchor].active = YES;
8383
[self.selectionIndicatorStripe.bottomAnchor constraintEqualToAnchor:superview.bottomAnchor].active = YES;

Classes/Core/Views/Carousel/FLEXScopeCarousel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ + (BOOL)requiresConstraintBasedLayout {
118118
- (void)updateConstraints {
119119
if (!self.constraintsInstalled) {
120120
self.collectionView.translatesAutoresizingMaskIntoConstraints = NO;
121-
[self.collectionView pinEdgesToSuperview];
121+
[self.collectionView flex_pinEdgesToSuperview];
122122

123123
self.constraintsInstalled = YES;
124124
}

Classes/FLEX-Categories.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@
1212
#import <FLEX/CALayer+FLEX.h>
1313
#import <FLEX/UIFont+FLEX.h>
1414
#import <FLEX/UIGestureRecognizer+Blocks.h>
15-
#import <FLEX/UIView+FLEX_Layout.h>
1615
#import <FLEX/UIPasteboard+FLEX.h>
1716
#import <FLEX/UIMenu+FLEX.h>
1817
#import <FLEX/UITextField+Range.h>
1918

2019
#import <FLEX/NSObject+FLEX_Reflection.h>
2120
#import <FLEX/NSArray+FLEX.h>
22-
#import <FLEX/NSDictionary+ObjcRuntime.h>
23-
#import <FLEX/NSString+ObjcRuntime.h>
24-
#import <FLEX/NSString+FLEX.h>
2521
#import <FLEX/NSUserDefaults+FLEX.h>
26-
#import <FLEX/NSMapTable+FLEX_Subscripting.h>
2722
#import <FLEX/NSTimer+FLEX.h>

Classes/GlobalStateExplorers/RuntimeBrowser/DataSources/FLEXRuntimeClient.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ + (void)initializeWebKitLegacy {
303303
if (options == TBWildcardOptionsAny) {
304304
return [[bundles flex_flatmapped:^NSArray *(NSString *bundlePath, NSUInteger idx) {
305305
return [self classNamesInImageAtPath:bundlePath];
306-
}] sortedUsingSelector:@selector(caseInsensitiveCompare:)];
306+
}] flex_sortedUsingSelector:@selector(caseInsensitiveCompare:)];
307307
}
308308

309309
return [[bundles flex_flatmapped:^NSArray *(NSString *bundlePath, NSUInteger idx) {
310310
return [[self classNamesInImageAtPath:bundlePath] flex_mapped:^id(NSString *className, NSUInteger idx) {
311311
return TBWildcardMap(query, className, options);
312312
}];
313-
}] sortedUsingSelector:@selector(caseInsensitiveCompare:)];
313+
}] flex_sortedUsingSelector:@selector(caseInsensitiveCompare:)];
314314
}
315315
}
316316

Classes/GlobalStateExplorers/RuntimeBrowser/FLEXKeyPathSearchController.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ - (void)didSelectKeyPathOption:(NSString *)text {
101101

102102
// Change "Bundle.fooba" to "Bundle.foobar."
103103
NSString *orig = self.delegate.searchController.searchBar.text;
104-
NSString *keyPath = [orig stringByReplacingLastKeyPathComponent:text];
104+
NSString *keyPath = [orig flex_stringByReplacingLastKeyPathComponent:text];
105105
self.delegate.searchController.searchBar.text = keyPath;
106106

107107
self.keyPath = [FLEXRuntimeKeyPathTokenizer tokenizeString:keyPath];
@@ -130,7 +130,7 @@ - (void)didPressButton:(NSString *)text insertInto:(UISearchBar *)searchBar {
130130
// Available since at least iOS 9, still present in iOS 13
131131
UITextField *field = [searchBar valueForKey:@"_searchBarTextField"];
132132

133-
if ([self searchBar:searchBar shouldChangeTextInRange:field.selectedRange replacementText:text]) {
133+
if ([self searchBar:searchBar shouldChangeTextInRange:field.flex_selectedRange replacementText:text]) {
134134
[field replaceRange:field.selectedTextRange withText:text];
135135
}
136136
}
@@ -266,7 +266,7 @@ - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
266266
self.filteredClasses = nil;
267267
}
268268

269-
self.timer = [NSTimer fireSecondsFromNow:0.15 block:^{
269+
self.timer = [NSTimer flex_fireSecondsFromNow:0.15 block:^{
270270
[self updateTable];
271271
}];
272272
}

Classes/Utility/Categories/NSArray+FLEX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
+ (instancetype)flex_forEachUpTo:(NSUInteger)bound map:(T(^)(NSUInteger i))block;
2828
+ (instancetype)flex_mapped:(id<NSFastEnumeration>)collection block:(id(^)(T obj, NSUInteger idx))mapFunc;
2929

30-
- (instancetype)sortedUsingSelector:(SEL)selector;
30+
- (instancetype)flex_sortedUsingSelector:(SEL)selector;
3131

3232
@end

Classes/Utility/Categories/NSArray+FLEX.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ + (instancetype)flex_mapped:(id<NSFastEnumeration>)collection block:(id(^)(id ob
104104
return array;
105105
}
106106

107-
- (instancetype)sortedUsingSelector:(SEL)selector {
107+
- (instancetype)flex_sortedUsingSelector:(SEL)selector {
108108
if (FLEXArrayClassIsMutable(self)) {
109109
NSMutableArray *me = (id)self;
110110
[me sortUsingSelector:selector];

Classes/Utility/Categories/NSTimer+FLEX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ typedef void (^VoidBlock)(void);
1111

1212
@interface NSTimer (Blocks)
1313

14-
+ (instancetype)fireSecondsFromNow:(NSTimeInterval)delay block:(VoidBlock)block;
14+
+ (instancetype)flex_fireSecondsFromNow:(NSTimeInterval)delay block:(VoidBlock)block;
1515

1616
// Forward declaration
1717
//+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval repeats:(BOOL)repeats block:(void (^)(NSTimer *timer))block;

Classes/Utility/Categories/NSTimer+FLEX.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ - (void)invoke;
1414
#pragma clang diagnostic ignored "-Wincomplete-implementation"
1515
@implementation NSTimer (Blocks)
1616

17-
+ (instancetype)fireSecondsFromNow:(NSTimeInterval)delay block:(VoidBlock)block {
17+
+ (instancetype)flex_fireSecondsFromNow:(NSTimeInterval)delay block:(VoidBlock)block {
1818
if (@available(iOS 10, *)) {
1919
return [self scheduledTimerWithTimeInterval:delay repeats:NO block:(id)block];
2020
} else {

0 commit comments

Comments
 (0)