Commit Graph
225 Commits
Author SHA1 Message Date
Andy Matuschak 74337fb65a Fixed 243883:
Removed the last @try/@catch from my code. Thanks to Christiaan Hofman for the patch.
2008-06-30 20:55:29 -07:00
Andy Matuschak 4ffb7ea64a Added a new string to localize for the case of an unreported download size. 2008-06-30 20:48:14 -07:00
Andy Matuschak 3d7e8c6c95 Fixes 244214
Made Sparkle display sensible data and use an indeterminate progress bar when the server doesn't report an update's file size.
2008-06-30 20:45:54 -07:00
Andy Matuschak 50de4d78e5 Corrected a stupid commit of a test string. 2008-06-30 20:44:58 -07:00
Andy Matuschak 9e4b74ff24 Merged in fixes to some Tiger warnings. sparkle-1.5b2 2008-06-30 20:13:43 -07:00
Andy Matuschak 68c2e6a055 Let Xcode know about the new localizations we've got for 1.5b2 and removed a bunch of crufty old localizations from the project. 2008-06-29 21:39:24 -07:00
Andy Matuschak e57ec53978 Little configuration change so Sparkle will build for the actual native architecture when compiling in debug. 2008-06-28 23:14:47 -07:00
Andy Matuschak d52c34c433 Sparkle will no longer build for ppc64 by default. You should still be able to target that architecture if you like, though. 2008-06-28 23:14:07 -07:00
Andy Matuschak a33225411a Updated localizations to convert ... into the unicode ellipsis; changed all kB to KB. 2008-06-28 23:05:24 -07:00
Andy Matuschak 07875309ba Bumped user agent string version number to 1.5b2. 2008-06-28 23:04:30 -07:00
Andy Matuschak 7d8ada58e9 Improved delegate names and made SUProbingUpdateDriver use SUUpdater's delegate methods instead of dumbly having its own.
IF YOU ARE IMPLEMENTING ANY DELEGATE METHODS TO A SPARKLE CLASS, CHECK THESE DIFFS AND ENSURE THAT THE SELECTORS YOU'RE IMPLEMENTING HAVEN'T CHANGED. There's a pretty good chance they have. But for good reason, I promise!
2008-06-28 22:28:14 -07:00
Andy Matuschak d77ca73f51 You're not allowed to resize the test app's debug window. Come on. 2008-06-28 22:12:52 -07:00
Andy Matuschak 1c7fb5922c Killed one of the two remaining @try/@catch blocks in my code. I'll get the other for b3. 2008-06-28 22:10:52 -07:00
Andy Matuschak 1345017c7e Added prefixes to category names which didn't have them in order to avoid workspace collisions. 2008-06-28 21:29:45 -07:00
Andy Matuschak a55f11d2ad Fixed 236240
Sparkle now detects if the preferences for automatic update checks or the time interval change mid-cycle.

If your product is a non-.app, you need to clue Sparkle in on the change by calling [[SUUpdater sharedUpdater] updatePreferencesChanged]. Sadly, there's no way to use NSUserDefaultsController to get to preferences which aren't managed by the host app.
2008-06-28 21:24:06 -07:00
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