equal
deleted
inserted
replaced
49 [iniFileContents enumerateLinesUsingBlock:^(NSString *line, BOOL *stop) { |
49 [iniFileContents enumerateLinesUsingBlock:^(NSString *line, BOOL *stop) { |
50 if (![self isNeedToSkipLine:line]) { |
50 if (![self isNeedToSkipLine:line]) { |
51 [self parseLine:line]; |
51 [self parseLine:line]; |
52 } |
52 } |
53 }]; |
53 }]; |
|
54 [self addLastParsedSectionToSections]; |
54 |
55 |
55 return [self copyParsedSections]; |
56 return [self copyParsedSections]; |
56 } |
57 } |
57 |
58 |
58 - (void)prepareForParsing { |
59 - (void)prepareForParsing { |
99 NSString *value = components[1]; |
100 NSString *value = components[1]; |
100 [self.currentSection setObject:value forKey:key]; |
101 [self.currentSection setObject:value forKey:key]; |
101 } |
102 } |
102 } |
103 } |
103 |
104 |
|
105 - (void)addLastParsedSectionToSections { |
|
106 [self addPreviousSectionToSectionsIfNecessary]; |
|
107 } |
|
108 |
104 - (NSArray *)copyParsedSections { |
109 - (NSArray *)copyParsedSections { |
105 return [self.mutableSections copy]; |
110 return [self.mutableSections copy]; |
106 } |
111 } |
107 |
112 |
108 #pragma mark - Dealloc |
113 #pragma mark - Dealloc |