LNVersionComparisonProtocol.h 695 B

123456789101112131415161718192021222324252627
  1. //
  2. // LNVersionComparisonProtocol.h
  3. // Sparkle
  4. //
  5. // Created by Andy Matuschak on 12/21/07.
  6. // Copyright 2007 Andy Matuschak. All rights reserved.
  7. //
  8. #ifndef LNVERSIONCOMPARISONPROTOCOL_H
  9. #define LNVERSIONCOMPARISONPROTOCOL_H
  10. /*!
  11. @protocol
  12. @abstract Implement this protocol to provide version comparison facilities for Sparkle.
  13. */
  14. @protocol LNVersionComparison
  15. /*!
  16. @method
  17. @abstract An abstract method to compare two version strings.
  18. @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent.
  19. */
  20. -(NSComparisonResult)compareVersion:(NSString*)versionA toVersion:(NSString*)versionB;
  21. @end
  22. #endif