X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=ChazUpdate.h;fp=ChazUpdate.h;h=ea69f4e71bd6dbecae7b81296f30191914b31f92;hp=0000000000000000000000000000000000000000;hb=d27548f80fe411fda2ee69c74a24eab4292267e9;hpb=e8d51183acdd2410a38dcf8f0efbf7c30cd6c581 diff --git a/ChazUpdate.h b/ChazUpdate.h new file mode 100644 index 0000000..ea69f4e --- /dev/null +++ b/ChazUpdate.h @@ -0,0 +1,32 @@ +// +// ChazUpdate.h +// The Cheat +// +// Created by Chaz McGarvey on 1/5/05. +// Copyright 2005 Chaz McGarvey. All rights reserved. +// + +#import +#import "ChazLog.h" + + +// This is my update system. It is extremely simple to use. Just pass the URL +// where the version information can be obtained. The version information will +// be loaded in the background and a dialog will show up presenting the user +// with the results of the check. If userRequested is NO, then the system will +// not do anything if an error occured or if there is no available update. +// Depending on the tags given in the version file, the presented dialog can +// have buttons which link to a "more info" page or a direct download, using the +// default web browser of the system. + + +// url can either be an NSURL or an NSString containing a valid URL. +void ChazCheckForUpdate( id url, BOOL userRequested ); // uses default app name. +void ChazCheckForUpdateWithName( id url, NSString *appName, BOOL userRequested ); + +// these return empty strings if they can't be determined. +NSString *ChazAppName(); // returns the name ChazCheckForUpdate() uses. +NSString *ChazAppVersion(); // returns the current version of the app. +NSDate *ChazAppBuildDate(); // returns the build date used to check for updates. + +