implementing CPString compare: so that sorting will work with default selector

This commit is contained in:
Nick Takayama authored and Ross Boucher committed 2008-10-17 14:43:43 -07:00
1 parent 0ac0a84b18
commit fc9e5b3a4c
1 file changed
+12 -1
+12 -1
View File
@@ -404,6 +404,17 @@ var CPStringHashes = new objj_dictionary();
// Identifying and comparing strings
/*
Compares the receiver to the specified string.
@param aString the string with which to compare
@return the result of the comparison
*/
- (CPComparisonResult)compare:(CPString)aString
{
return [self compare:aString options:nil];
}
/*
Compares the receiver to the specified string.
@param aString the string with which to compare
@@ -411,7 +422,7 @@ var CPStringHashes = new objj_dictionary();
*/
- (CPComparisonResult)caseInsensitiveCompare:(CPString)aString
{
return [self compare:aString options:CPCaseInsensitiveSearch]
return [self compare:aString options:CPCaseInsensitiveSearch];
}
/*