Sean McBride
d7260665d6
fixed warning by moving private methods higher in the source file
2009-12-29 23:50:31 -05:00
Sean McBride
d7774c0dc0
performed a code review, specifically:
...
- changed some #include to #import
- fixed some NULL -> nil Cocoa coding conventions
- added new compiler warnings and fixed some warnings they generated
- check for nil from NSTemporaryDirectory
- added missing files to unit test and test app targets
- added xcconfig files for unit test target
- added @private to some ivars
- changes some variables from signed to unsigned as appropriate
- changed from base 2 to base 10 measurements of file size, consistent with both the actual meaning of metric prefixes and Apple's new policy as of 10.6
- reduced some unneeded copy-paste of code
- fixed failure to check for null from malloc and unneeded check against null before calling free
- OSErr was incorrectly used instead of OSStatus
- added some consts & statics to global strings
- fixed some issues discovered by static analysis
- fixed some 64bit issues, mostly related to casting and the use of slightly incorrect types/sizes
- some dealloc methods were using accessors, changed to access ivars directly, as per Apple guidelines
- removed old NS_DURING, NS_HANDLER, NS_ENDHANDLER macros
- fixed a bug where immutable data was being mutated
- removed all instance of "== YES" as they are dangerous
- removed some redundant nil checks
- fixed some leaks
- conditionally replaced deprecated method usage
- cleanup CF/NSMakeCollectable usage
- fixed bug in GC where memory could be collected too early due to lack of strong references when using UTF8String
- prevent passing null to CFRelease
2009-10-31 21:07:00 -04:00
Andy Matuschak
bd80144c7b
Fixing #456514 : Appcast download crashes on 10.5 if download fails
2009-10-20 13:55:03 -07:00
Andy Matuschak
af37928283
Fixed a Spanish localization issue in the update permissions prompt; fixed release-mode compatibility for Leopard.
2009-09-20 00:15:06 -04:00
Andy Matuschak
6a3df43017
Fixed Bug #428216 : "Update alert does not use a proper emdash"
2009-09-20 00:05:23 -04:00
Joachim Bengtsson
7bfbe83d87
When failing to parse a feed item, tell the developer *what* the error is. No need for a full-fledged NSError because these errors only go to the console, not displayed to the user (who doesn't care).
2009-09-06 17:54:02 -07:00
Joy Zhao
a871569867
Bug #423014 : "Translation errors in Spanish and Italian"
2009-09-03 23:42:46 -07:00
Grant Erickson
65b071eb86
If no suitable packages or bundles are found to be installed, Sparkle will install the first package it finds in the distribution archive.
2009-09-03 23:29:50 -07:00
Christiaan Hofman
0e99d4fa80
Bug #402074 : ".pkg installations should support asynchronous installation"
2009-09-03 23:20:03 -07:00
Andy Matuschak
8f00c3c274
Fixing Bug #422201 : ""Checking for updates..." needs to be added to spanish (es.lproj) strings"
...
The Spanish localizer actually sent these over, but I forgot to add 'em in!
2009-09-01 20:36:46 -07:00
Stuart Morgan
4fad53007f
Change availability checks so that they build on 10.4
2009-09-01 20:10:16 -07:00
Andy Matuschak
e7435964a2
Fixing Bug #421608 : "Update fails if more than one .app exists in the archive"
2009-08-30 20:24:28 -07:00
Ernesto Gomez Cereijo
8ea15468b4
Updated the Spanish localization.
2009-08-28 09:17:35 -07:00
Andy Matuschak
9025bef687
Fixed moving to trash on Tiger.
2009-08-27 22:04:51 -07:00
Fraser Speirs
ffc44bb089
Added a space in the description of the SUNoFeedURL exception becuase it led me to believe that the value of SUFeedURLKey was actually @"SUFeedURLKey" and not @"SUFeedURL".
2009-08-27 11:29:15 +01:00
Andy Matuschak
6c968489eb
Bug #381138 : "Translator erros on check updates dialog"
...
A bunch of small localization tweaks courtesy Joy Zhao.
2009-08-27 00:54:21 -07:00
Andy Matuschak
2fc1b66a79
Fixing:
...
Bug #389869 : "Sparkle runs thread-unsafe code on secondary threads"
Bug #312995 : "Canceling authentication request causes crash on next update"
Bug #388793 : "Need to notify SUUpdateDriverFinishedNotification on main thread"
The unfortunate side-effect of this fix is that all the file-handling code is now CoreServices-based, since NSFileManager is not thread-safe. This is disgusting and will be stricken from all records when installation is performed by relaunch in Next Major, as it should have been in the first place.
2009-08-27 00:43:32 -07:00
Andy Matuschak
bd99d0451d
Fixing Bug #274872 : "Activate host app on automatic update when when host runs in background"
2009-08-27 00:04:53 -07:00
Andy Matuschak
d62e47cd2e
Fixing Bug #416798 : "Sparkle should warn developers if the app has no public key and the appcast isn't https://"
2009-08-27 00:02:10 -07:00
Simone Manganelli
43a603c1cc
if the user chooses to not restart the host app after installing the new version, the Sparkle update status window goes away and stops annoying the user by staying on screen; originally by simX, http://github.com/rentzsch/clicktoflash/commit/c768f07087c769f12f7645e78dd42802da46048b
2009-08-23 14:19:57 -07:00
Simone Manganelli
9b5b541c82
Fix for Sparkle crasher in scheduleNextUpdateCheck. Originally by lapcat, http://github.com/rentzsch/clicktoflash/commit/f7ca07b3e6e6e13de8133d8e237f284f2ccdc066
2009-08-23 14:16:02 -07:00
Andy Matuschak
119bac527f
Merge branch 'bdash/leak-fixes'
2009-08-23 09:52:55 -07:00
Andy Matuschak
e9bc6a2915
Merge branch 'leak-fixes' of git://github.com/bdash/sparkle into bdash/leak-fixes
2009-08-23 09:52:40 -07:00
Andy Matuschak
2979338f8a
Merge branch 'master' of git://github.com/bdash/sparkle into bdash/custom-user-agent-string
2009-08-23 09:46:39 -07:00
Andy Matuschak
830f633a6e
Added new IB3 files for the changed localizations in the last revision.
...
Updated the German localization, courtesy Christoph Schmitz.
2009-08-21 19:07:37 -07:00
Mark Rowe
0d51d12e43
Merge branch 'master' into leak-fix
2009-08-21 15:28:30 -07:00
Mark Rowe
2d47989616
Remove bogus call to retain that results in a leak of an NSMethodSignature.
2009-08-21 15:26:55 -07:00
Mark Rowe
f259b5e825
Return an autoreleased object as callers expect rather than leaking the dictionary.
2009-08-21 15:25:06 -07:00
Mark Rowe
3800b33c1a
Merge branch 'master' into custom-user-agent-string
2009-08-21 14:47:51 -07:00
Mark Rowe
dfe0eff095
Provide the ability to set a custom user agent string on all HTTP requests that Sparkle initiates.
2009-08-21 14:46:39 -07:00
Andy Matuschak
15095640eb
Fixing Bug #400536 : @"The update is improperly signed." does not localized
2009-08-20 23:53:14 -07:00
Andy Matuschak
6070419761
Bug #377834 : "MoreInfoView summary appears empty in SUUpdatePermissionPrompt in non-English locales"
2009-08-20 23:48:28 -07:00
Andy Matuschak
db2f48ad09
Oops: *actually* finished doing the architecture configuration update.
2009-08-20 23:42:16 -07:00
Andy Matuschak
cfe5206252
Fixing Bug #396495 : "Wrong method name"
...
Just a convention mismatch in a private method.
2009-08-20 23:32:51 -07:00
Andy Matuschak
975f679148
Removing deprecated warning flag.
2009-08-20 23:29:39 -07:00
Andy Matuschak
b571a3d58d
Fixing Bug #398921 : Sparkle should detect read/write errors on archive extraction
...
Thanks to Jim Turner for the patch.
2009-08-20 23:28:26 -07:00
Andy Matuschak
5090d4b3a0
Giving the "seconds" field a little more space.
2009-08-20 23:25:04 -07:00
Andy Matuschak
799b00211d
Fixing Bug #338324 : "Unsigned updates delivered over https fail"
...
Silly boolean logic error.
2009-08-20 23:24:13 -07:00
Andy Matuschak
afe8afc41f
Fixing Bug #393388 : Leaking NSFileManager errors
2009-08-20 23:18:15 -07:00
Andy Matuschak
090e7c0ecb
Fixing Bug #304674 : "Debug linking can break on default Xcode projects"
...
Sparkle now builds for all architectures in debug mode.
2009-08-20 23:14:52 -07:00
Andy Matuschak
e557b78394
Updated the CFBundleVersion script to use the Sparkle git hash instead of the Bzr revno.
2009-08-20 23:12:51 -07:00
Andy Matuschak
c53f961690
Fixing Bug #272346 : "Sparkle Test App needs to use the new preferences bindings"
2009-08-20 23:02:55 -07:00
Andy Matuschak
9e6b51fac9
Fixing Bug #415707 : "Crash on hitting Esc in an update alert in garbage-collected Sparkle"
2009-08-20 22:50:34 -07:00
Andy Matuschak
a6f98158a7
Removed a warning caused by the last commit.
2009-08-20 22:49:15 -07:00
Andy Matuschak
ca040bdf9a
Fixing #394787 : "SUUnarchiver passes NSNumber to method requiring long"
2009-08-20 21:22:24 -07:00
Andy Matuschak
f95cf6454d
A little cleanup on bricooke's patch.
2009-08-20 20:58:53 -07:00
Brian Cooke
827c6adc03
when about to show the user what will be anonymously sent, make sure the delegate is told that systemprofile info will be sent so it knows to put its custom additions in there.
2009-08-20 10:00:41 -06:00
Andy Matuschak
59d9ece06b
Fixes bug #337331 : "Status progress still doesn't animate"
...
In general, the progress indicator bindings for animate and isDeterminate are totally unreliable. Giving up on them.
2009-08-19 23:29:21 -07:00
Andy Matuschak
1dd1b09e5f
Fixing #341643 : "wrong version number in automatic update alert"
...
Thanks to Jim Turner for the patch.
2009-08-18 22:20:46 -07:00
Andy Matuschak
58296ecaf7
Added a Czech localization courtesy the Czech X Team.
2009-08-18 21:58:50 -07:00