]>
Dogcows Code - chaz/thecheat/blob - ChazUpdate.h
ea69f4e71bd6dbecae7b81296f30191914b31f92
5 // Created by Chaz McGarvey on 1/5/05.
6 // Copyright 2005 Chaz McGarvey. All rights reserved.
9 #import <Cocoa/Cocoa.h>
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.
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
);
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.
This page took 0.03625 seconds and 4 git commands to generate.