I think for a beta that will certainly expire on a given date, you can just copy that date. Then you can compare:
NSDate* expirationDate = [NSDate dateWithString: @"2012-03-24 10:45:32 +0600"]; if ([expirationDate compare:[NSDate date]] == NSOrderedAscending) {
If you want to be flexible with a date, you can, for example, create a .txt file on your server that contains a date string. This can be easily downloaded:
NSString* dateString = [NSString stringWithContentsOfURL:myURL encoding:NSUTF8StringEncoding error:NULL]; NSDate* expirationDate = [NSDate dateWithString: dateString];
Of course, it would be nice if you automatically submit a tip for a glitter update. You can turn off automatic update checking (see https://github.com/andymatuschak/Sparkle/wiki/make-preferences-ui ), and then when the beta testing time has expired, manually check for updates and / or activate automatic checking , (see: https://github.com/andymatuschak/Sparkle/wiki/customization )
source share