Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from cearley/master
Fix for issue #219
- Loading branch information
Showing
4 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
.../QPickerWhitespaceDelimitedStringParser.m → ...kdialog/QPickerTabDelimitedStringParser.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// | ||
// QPickerWhitespaceDelimitedStringParser.m | ||
// QPickerTabDelimitedStringParser.m | ||
// QuickDialog | ||
// | ||
// Created by HiveHicks on 05.04.12. | ||
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import "QPickerWhitespaceDelimitedStringParser.h" | ||
#import "QPickerTabDelimitedStringParser.h" | ||
|
||
@implementation QPickerWhitespaceDelimitedStringParser | ||
@implementation QPickerTabDelimitedStringParser | ||
|
||
- (id)objectFromComponentsValues:(NSArray *)componentsValues | ||
{ | ||
return [componentsValues componentsJoinedByString:@" "]; | ||
return [componentsValues componentsJoinedByString:@"\t"]; | ||
} | ||
|
||
- (NSArray *)componentsValuesFromObject:(id)object | ||
{ | ||
NSString *stringValue = [object isKindOfClass:[NSString class]] ? object : [object description]; | ||
return [stringValue componentsSeparatedByString:@" "]; | ||
return [stringValue componentsSeparatedByString:@"\t"]; | ||
} | ||
|
||
@end |