root/trunk/Update Checker Sources/SUUtilities.h

Revision 269, 0.6 kB (checked in by durin42, 2 years ago)

Initial non-working updater app - it gets as far as downloading an update, but
it doesn't know how to unarchive yet. I've grabbed a bunch of sources from
Sparkle (duh from the filenames) but this is all we'll use from there, as from
here on out our mission is quite different from theirs. I've not yet tested
the appcast support very thoroughly, but it seems to be working in my initial
tests. I need to change it from NSUserDefaults to CFPreferencesCopyAppValue,
and fix the appcast URL in the Info.plist (note to other devs: the current URL
resolves to a nonroutable IP - you've been warned!).
I'll do unarchiving in a bit - but first I need to think about some things. I
think the solution Graham offered of using a shell script and exec() will be best.

Line 
1 //
2 //  SUUtilities.h
3 //  Sparkle
4 //
5 //  Created by Andy Matuschak on 3/12/06.
6 //  Copyright 2006 Andy Matuschak. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10
11 id SUInfoValueForKey(NSString *key);
12 id SUUnlocalizedInfoValueForKey(NSString *key);
13 NSString *SUHostAppName();
14 NSString *SUHostAppDisplayName();
15 NSString *SUHostAppVersion();
16 NSString *SUHostAppVersionString();
17
18 NSComparisonResult SUStandardVersionComparison(NSString * versionA, NSString * versionB);
19
20 // If running make localizable-strings for genstrings, ignore the error on this line.
21 NSString *SULocalizedString(NSString *key, NSString *comment);
Note: See TracBrowser for help on using the browser.