Commit Graph
209 Commits
Author SHA1 Message Date
Andy Matuschak 41aeded009 Fixes 236577
SUUpdater.h should be able to be included independently of other headers now.
2008-06-28 18:47:17 -07:00
Andy Matuschak 1d92b825ee Made the test app bind cmd+U to check for updates. 2008-06-28 18:30:19 -07:00
Andy Matuschak c51abb4318 Fixing 241181
Added a cancel button to the "checking for updates..." dialog.
2008-06-28 18:22:05 -07:00
Andy Matuschak 756b32f258 Slightly refactored SUUserInitiatedUpdateDriver. 2008-06-28 17:01:52 -07:00
Andy Matuschak a9662f5bb4 Fixes 243367
Sparkle now uses @loader_path for its installation path instead of @executable_path; this should allow Sparkle to get loaded properly by bundles.
2008-06-28 16:33:54 -07:00
Andy Matuschak 3b86dc72c7 Fixes 239512 (for real this time, I hope). Sorry about that! 2008-06-27 23:19:37 -07:00
Andy Matuschak 46f9b4a049 Fixes 242566
Sparkle now cleans up all the stuff it makes in /tmp
2008-06-25 22:39:17 -07:00
Andy Matuschak 959ef54b7e Added a Spanish localization courtesy Ernesto Gomez Cereijo. Thanks! 2008-06-25 22:19:20 -07:00
Andy Matuschak a68727119e Made SUUpdater's delegate an IBOutlet. 2008-06-25 21:18:02 -07:00
Andy Matuschak f425746f41 Put the default font sizes in the release notes WebView back to their 1.1 values (11/13 for standard/fixed fonts). 2008-06-23 22:52:33 -07:00
Andy Matuschak ad2c82a73c Gave the SUUpdateAlert a non-zero minimum size. 2008-06-23 22:51:01 -07:00
Andy Matuschak d4291d60d4 Fixes 239512
NSAutoreleasePool is now drained instead of released.
2008-06-23 22:48:57 -07:00
Andy Matuschak cd4addbcd7 Fixes 239512
SUUpdater no longer retains its delegate.
2008-06-23 22:36:52 -07:00
Andy Matuschak 764bed3212 Okay, *really* fixing the bug this time. Thanks for watching my back, Scott. 2008-06-23 22:03:09 -07:00
Andy Matuschak 3daa88daa4 --fixes lp:242525 --fixes lp:242561 --fixes lp:242564
Wow, big mistakes. Critical fixes to the unarchiver refactoring I just finished, fixing a double-retain, a file added to the wrong target, and a crash on the use of any kind of archive except .dmg. Really sorry, guys.
2008-06-23 21:45:37 -07:00
Andy Matuschak eac4134968 Replaced UTF8String with fileSystemRepresentation and [NSString initWithUTF8String] with [NSFileManager stringWithFileSystemRepresentation:length:] as appropriate. 2008-06-20 23:29:35 -07:00
Andy Matuschak 792bad502d Updated the strings file for the unicode ellipses. 2008-06-20 23:29:05 -07:00
Andy Matuschak 1092c7dba7 Replaced "..." with "\u2026". Unfortunately, this means I had to change the strings file. 2008-06-20 22:35:26 -07:00
Andy Matuschak 6295c36561 Added the (important) sharedUpdater method to SUUpdater.h. Oops! 2008-06-20 22:31:52 -07:00
Andy Matuschak a5dcf946ee Fixed all setters to eliminate the possibility of accidentally releasing the value to be set in the case that [foo setValue:a] is called when [foo value] == a. 2008-06-20 22:31:07 -07:00
Andy Matuschak aba39e3429 Now using [[NSWorkspace sharedWorkspace] openFile:] instead of [[NSWorkspace sharedWorkspace] launchApplication:]. This will help with things like preference panes, which will now appropriately relaunch system preferences. 2008-06-20 22:08:14 -07:00
Andy Matuschak c2c3a6853c Corrected an incorrect log string--the one which occurs when the old app can't be trashed. 2008-06-20 22:06:00 -07:00
Andy Matuschak 074646e830 Removed dead commented-out code. 2008-06-20 22:05:06 -07:00
Andy Matuschak 7664995dfc Fixes #241762
+load is called before there's an NSAutoreleasePool, so now Sparkle uses [[NSMutableArray alloc] init] instead of [[NSMutableArray array] retain].
2008-06-20 22:00:50 -07:00
Andy Matuschak af245f3e89 Fixes 236636:
Sparkle now makes sure to make the update alert key when its host app becomes active.
2008-06-19 23:02:12 -07:00
Andy Matuschak 6da2774f61 Removed a warning, refactored the piped unarchiver code a little more. 2008-06-19 22:58:53 -07:00
Andy Matuschak 441a5382b9 Oops! Fixed a warning that caused Sparkle not to compile. Made the unarchiver no longer an IV. 2008-06-19 22:58:40 -07:00
Andy Matuschak 4b74af2de9 Fixes 240385
The relaunch tool sadly now polls for the host app being closed, rather than registering for notifications. But there was some race condition which had problems with the latter.
2008-06-19 22:16:19 -07:00
Andy Matuschak 6f85473bc1 Fixes 239512
Changed the locale to "en_US" from "English", which wasn't actually a locale. This should fix Sparkle for non-English locales.
2008-06-18 23:14:49 -07:00
Andy Matuschak b7898f5ce7 Added an updated French localization, courtesy Yann Ricquebourg. Thanks, Yann! 2008-06-18 23:07:02 -07:00
Andy Matuschak fcf4da886e Fixes 240792, 240793
Merging in Brian Webster's Tiger compatibility fixes.
2008-06-18 23:01:03 -07:00
Andy Matuschak 47b5d5f231 Fixes 241100
Added /sw/bin to the list of directories in the search path for the bzr version numbering script.
2008-06-18 22:56:50 -07:00
Andy Matuschak 93ea93dd38 Fixes 236695
Refactored Sparkle's unarchiving system into SUUnarchiver, a factory for SUPipedUnarchiver and SUDiskImageUnarchiver. I removed that nasty cleanUp call by now copying out the contents of the DMG into the /tmp directory and unmounting. Nice!

This changed a fair amount so please test with your build and let me know if it explodes things. Works in my tests, though.
2008-06-18 22:53:16 -07:00
Brian Webster 7576ba7e38 Added NSURLConnection delegate method to handle redirects correctly under Tiger 2008-06-17 17:48:33 -04:00
Brian Webster 1bd6c13593 Modified objectForKey: so it falls back to NSUserDefaults if CFPreferencesCopyAppValue() doesn't return a value
This catches values that are registered using registerDefaults: on Tiger, which CFPreferencesCopyAppValue() doesn't do
2008-06-17 17:36:30 -04:00
Andy Matuschak 06bda29f7a Sparkle no longer fails the update if it can't trash the old version of the app. This at least lets Sparkle work on Snow Leopard, though it leaves the old version around. 2008-06-16 22:03:09 -07:00
Andy Matuschak 4a26774818 Fixes 240274
Sparkle no longer crashes when the appcast contains an enclosure with no URL (or if there's any other exception in appcast parsing).
2008-06-15 22:23:31 -07:00
Andy Matuschak 269a648d24 Fixes a compile warning; using NSUInteger in place of unsigned. 2008-06-15 17:53:51 -07:00
Andy Matuschak c2745f5944 Fixes #236948:
Sparkle no longer fails to close the "checking for updates" progress window when an appcast fails to load.
2008-06-15 17:52:42 -07:00
Andy Matuschak 17a5bf2b96 Agh, changed the GC settings again. I had made the release configuration before use the gc and the gc configuration use the normal configuration. This should be right. 2008-06-02 14:30:21 -07:00
Andy Matuschak 61d53375e5 Added some version comparison tests for things like 1.0b9 -> 1.0b10 and double-digit nonsense. Things still pass. 2008-06-02 10:45:52 -07:00
Andy Matuschak 6a551229b9 Fixes bug 236694
Basically, because I foolishly don't "[self abortUpdate]" on failure in the UI-based update driver, the SUUpdater instance thought an update was still in progress when it wasn't. This only affected user-initiated updates (SUScheduledUpdateDriver overrides that method), but it still was a serious issue.
2008-06-01 22:54:58 -07:00
Andy Matuschak c59c4e50ca Made the dual-mode build configuration actually use the .xcconfig which will build it with GC support. Doh!
This means the Sparkle-with-GC.framework I distributed doesn't actually have GC support. You'll have to compile it yourself; sorry about that!
2008-06-01 17:17:16 -07:00
Andy Matuschak d855e637cf Merged in the Dutch localization, courtesy Maarten Van Coile. 2008-06-01 16:52:47 -07:00
Andy Matuschak 0150b3be46 Removed a double-space in the permission prompt NIB. 2008-06-01 16:51:18 -07:00
Andy Matuschak 47f42e3810 Changed kB to KB, as it should be. Jonas, I thought you got this! 2008-06-01 16:49:08 -07:00
Maarten Van Coile 156ce34cdc Forgot to add the non-existing nib files 2008-06-02 01:00:29 +02:00
Maarten Van Coile d822487889 Added Dutch translation 2008-06-02 00:45:30 +02:00
Andy Matuschak 046a2d1493 Doh! Fixed a dumb double-release that would cause crashes in non-GC apps when the user cancels an update's download. That's kind of a big mistake. Sorry about that guys. 2008-06-01 11:26:03 -07:00
Andy Matuschak 64755d3c63 Changed the SUUpdateAlert description text to use better notation for its em-dash so that localizations can not have an em-dash if they want. 2008-06-01 10:48:07 -07:00