mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
You would use this like:
<item>
<title>My great update</title>
...
<sparkle:tags>
<sparkle:criticalUpdate />
</sparkle:tags>
</item>
The behavior of this tag presently is: rather than waiting for the user to quit the app (or for some large amount of time to pass), the user will be prompted to install the update (with a stronger message) immediately upon its receipt. This behavior could be improved for the manual update case as well.
We can also use this new mechanism to create special behavior for e.g. paid updates.
60 lines
1.3 KiB
Objective-C
60 lines
1.3 KiB
Objective-C
//
|
|
// SUAppcastItem.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 3/12/06.
|
|
// Copyright 2006 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUAPPCASTITEM_H
|
|
#define SUAPPCASTITEM_H
|
|
|
|
@interface SUAppcastItem : NSObject
|
|
{
|
|
@private
|
|
NSString *title;
|
|
NSDate *date;
|
|
NSString *itemDescription;
|
|
|
|
NSURL *releaseNotesURL;
|
|
|
|
NSString *DSASignature;
|
|
NSString *minimumSystemVersion;
|
|
|
|
NSURL *fileURL;
|
|
NSString *versionString;
|
|
NSString *displayVersionString;
|
|
|
|
NSDictionary *deltaUpdates;
|
|
|
|
NSDictionary *propertiesDictionary;
|
|
|
|
NSURL *infoURL; // UK 2007-08-31
|
|
}
|
|
|
|
// Initializes with data from a dictionary provided by the RSS class.
|
|
- initWithDictionary:(NSDictionary *)dict;
|
|
- initWithDictionary:(NSDictionary *)dict failureReason:(NSString**)error;
|
|
|
|
- (NSString *)title;
|
|
- (NSString *)versionString;
|
|
- (NSString *)displayVersionString;
|
|
- (NSDate *)date;
|
|
- (NSString *)itemDescription;
|
|
- (NSURL *)releaseNotesURL;
|
|
- (NSURL *)fileURL;
|
|
- (NSString *)DSASignature;
|
|
- (NSString *)minimumSystemVersion;
|
|
- (NSDictionary *)deltaUpdates;
|
|
- (BOOL)isDeltaUpdate;
|
|
- (BOOL)isCriticalUpdate;
|
|
|
|
// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
|
|
- (NSDictionary *)propertiesDictionary;
|
|
|
|
- (NSURL *)infoURL; // UK 2007-08-31
|
|
|
|
@end
|
|
|
|
#endif
|