GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — use Objective-C 2.0 subscripting for dictionaries · romaonthego/RETableViewManager@58da076

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • RETableViewManagerExample/Pods/REFormattedNumberField/REFormattedNumberField
    • NSString+RENumberFormat.m
  • RETableViewManager
    • Cells
      • RETableViewCreditCardCell.m
    • RETableViewCellStyle.m
    • RETableViewManager.m
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎RETableViewManager/Cells/RETableViewCreditCardCell.m‎

Copy file name to clipboardExpand all lines: RETableViewManager/Cells/RETableViewCreditCardCell.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static inline RECreditCardType RECreditCardTypeFromNumber(NSString *creditCardNu
8888
};
8989

9090
for (NSNumber *type in types) {
91-
NSRegularExpression *rg = [NSRegularExpression regularExpressionWithPattern:[types objectForKey:type] options:NSRegularExpressionCaseInsensitive error:NULL];
91+
NSRegularExpression *rg = [NSRegularExpression regularExpressionWithPattern:types[type] options:NSRegularExpressionCaseInsensitive error:NULL];
9292
if ([rg numberOfMatchesInString:strippedNumber options:0 range:NSMakeRange(0, strippedNumber.length)] == 1)
9393
return (RECreditCardType)type.integerValue;
9494
}
Collapse file

‎RETableViewManager/RETableViewCellStyle.m‎

Copy file name to clipboardExpand all lines: RETableViewManager/RETableViewCellStyle.m
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ - (BOOL)hasCustomBackgroundImage
6363

6464
- (UIImage *)backgroundImageForCellType:(RETableViewCellType)cellType
6565
{
66-
UIImage *image = [self.backgroundImages objectForKey:@(cellType)];
66+
UIImage *image = self.backgroundImages[@(cellType)];
6767
if (!image && cellType != RETableViewCellTypeAny)
68-
image = [self.backgroundImages objectForKey:@(RETableViewCellTypeAny)];
68+
image = self.backgroundImages[@(RETableViewCellTypeAny)];
6969
return image;
7070
}
7171

@@ -82,9 +82,9 @@ - (BOOL)hasCustomSelectedBackgroundImage
8282

8383
- (UIImage *)selectedBackgroundImageForCellType:(RETableViewCellType)cellType
8484
{
85-
UIImage *image = [self.selectedBackgroundImages objectForKey:@(cellType)];
85+
UIImage *image = self.selectedBackgroundImages[@(cellType)];
8686
if (!image && cellType != RETableViewCellTypeAny)
87-
image = [self.selectedBackgroundImages objectForKey:@(RETableViewCellTypeAny)];
87+
image = self.selectedBackgroundImages[@(RETableViewCellTypeAny)];
8888
return image;
8989
}
9090

Collapse file

‎RETableViewManager/RETableViewManager.m‎

Copy file name to clipboardExpand all lines: RETableViewManager/RETableViewManager.m
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ - (void)registerClass:(NSString *)objectClass forCellWithReuseIdentifier:(NSStri
134134

135135
- (id)objectAtKeyedSubscript:(id <NSCopying>)key
136136
{
137-
return [self.registeredClasses objectForKey:key];
137+
return self.registeredClasses[key];
138138
}
139139

140140
- (void)setObject:(id)obj forKeyedSubscript:(id <NSCopying>)key
@@ -146,7 +146,7 @@ - (Class)classForCellAtIndexPath:(NSIndexPath *)indexPath
146146
{
147147
RETableViewSection *section = self.mutableSections[indexPath.section];
148148
NSObject *item = section.items[indexPath.row];
149-
return [self.registeredClasses objectForKey:item.class];
149+
return self.registeredClasses[item.class];
150150
}
151151

152152
- (NSArray *)sections
Collapse file

‎RETableViewManagerExample/Pods/REFormattedNumberField/REFormattedNumberField/NSString+RENumberFormat.m‎

Copy file name to clipboardExpand all lines: RETableViewManagerExample/Pods/REFormattedNumberField/REFormattedNumberField/NSString+RENumberFormat.m
+2-2Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.