Chromium Updater
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
705 B

13 years ago
  1. //
  2. // SUVersionComparisonProtocol.h
  3. // Sparkle
  4. //
  5. // Created by Andy Matuschak on 12/21/07.
  6. // Copyright 2007 Andy Matuschak. All rights reserved.
  7. //
  8. #ifndef SUVERSIONCOMPARISONPROTOCOL_H
  9. #define SUVERSIONCOMPARISONPROTOCOL_H
  10. /*!
  11. @protocol
  12. @abstract Implement this protocol to provide version comparison facilities for Sparkle.
  13. */
  14. @protocol SUVersionComparison
  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