Created
June 5, 2011 06:30
-
-
Save franciscoadasme/1008711 to your computer and use it in GitHub Desktop.
comparing two MDMFile
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
- (NSComparisonResult)compare:(id)object | |
{ | |
if ([[self identifier] isEqualToString:[object identifier]]) return NSOrderedSame; | |
NSComparisonResult result = [[self identifier] compare:[object identifier]]; | |
if (result != NSOrderedSame) return result; | |
return [[self fileName] compare:[object fileName]]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment