]>
Dogcows Code - chaz/thecheat/blob - ChazUpdate.h
d63b8da739f1bcca4259524e0c6a3c32bfdb232a
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.dogcows.com/chaz/wiki/TheCheat
6 * Copyright (c) 2003-2010, Charles McGarvey et al.
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
13 #import <Cocoa/Cocoa.h>
17 // This is my update system. It is extremely simple to use. Just pass the URL
18 // where the version information can be obtained. The version information will
19 // be loaded in the background and a dialog will show up presenting the user
20 // with the results of the check. If userRequested is NO, then the system will
21 // not do anything if an error occured or if there is no available update.
22 // Depending on the tags given in the version file, the presented dialog can
23 // have buttons which link to a "more info" page or a direct download, using the
24 // default web browser of the system.
27 // url can either be an NSURL or an NSString containing a valid URL.
28 void ChazCheckForUpdate( id url
, BOOL userRequested
); // uses default app name.
29 void ChazCheckForUpdateWithName( id url
, NSString
*appName
, BOOL userRequested
);
31 // these return empty strings if they can't be determined.
32 NSString
*ChazAppName(); // returns the name ChazCheckForUpdate() uses.
33 NSString
*ChazAppVersion(); // returns the current version of the app.
34 NSDate
*ChazAppBuildDate(); // returns the build date used to check for updates.
This page took 0.034809 seconds and 3 git commands to generate.