]> Dogcows Code - chaz/thecheat/blob - ChazUpdate.h
The Cheat 1.2
[chaz/thecheat] / ChazUpdate.h
1 //
2 // ChazUpdate.h
3 // The Cheat
4 //
5 // Created by Chaz McGarvey on 1/5/05.
6 // Copyright 2005 Chaz McGarvey. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #import "ChazLog.h"
11
12
13 // This is my update system. It is extremely simple to use. Just pass the URL
14 // where the version information can be obtained. The version information will
15 // be loaded in the background and a dialog will show up presenting the user
16 // with the results of the check. If userRequested is NO, then the system will
17 // not do anything if an error occured or if there is no available update.
18 // Depending on the tags given in the version file, the presented dialog can
19 // have buttons which link to a "more info" page or a direct download, using the
20 // default web browser of the system.
21
22
23 // url can either be an NSURL or an NSString containing a valid URL.
24 void ChazCheckForUpdate( id url, BOOL userRequested ); // uses default app name.
25 void ChazCheckForUpdateWithName( id url, NSString *appName, BOOL userRequested );
26
27 // these return empty strings if they can't be determined.
28 NSString *ChazAppName(); // returns the name ChazCheckForUpdate() uses.
29 NSString *ChazAppVersion(); // returns the current version of the app.
30 NSDate *ChazAppBuildDate(); // returns the build date used to check for updates.
31
32
This page took 0.031366 seconds and 4 git commands to generate.