Commit Graph
1868 Commits
Author SHA1 Message Date
Zorg dd3c698f3e Add documentation to SUUpdaterController 2016-03-01 19:48:56 -05:00
Zorg 30c2ba125b Remove IBOutlet attribute for SUUpdater delegate 2016-03-01 19:37:39 -05:00
Zorg f26811b439 Document resetUpdateCycleAfterShortDelay and updateInProgress 2016-03-01 19:19:01 -05:00
Zorg 7dd3e02546 Clarify why automatic update driver doesn't listen for system power off 2016-03-01 19:11:07 -05:00
Zorg 0c41fafb47 Add more doc notes to SUUserUpdaterDriver.h 2016-03-01 18:53:37 -05:00
Zorg 3362ea174a Remove SUAutomaticInstallationChoice since it was duplicated definitions 2016-03-01 02:50:44 -05:00
Zorg cea47960dd Fix filename in comments 2016-03-01 02:37:24 -05:00
Zorg 721ccdc5d9 Adding documentation comments to SUUserUpdaterDriver 2016-03-01 02:36:42 -05:00
Zorg 49c10c8cb5 Move Sparkle's user updater driver delegate protocol out of SUUserUpdaterDriver 2016-03-01 00:16:59 -05:00
Zorg 0a6db8ef7a I can verify this later 2016-03-01 00:02:34 -05:00
Zorg cf31592e4a Ignore deprecated warnings for calling alert modal methods on updater delegate 2016-02-29 23:47:44 -05:00
Zorg 097784db95 Cancel update cycle and abort updates in SUUpdater's dealloc 2016-02-29 23:41:39 -05:00
Zorg b6fe5ea289 Move permission checking of allowing automatic updates to SUUpdater
SUHost can be called from any process with different privilege levels,
so it can't determine if the user can install to the app bundle without issue
2016-02-29 22:48:27 -05:00
Zorg f7b6a70979 These two classes are not referenced here anymore 2016-02-29 18:27:33 -05:00
Zorg 7c16419a6d SUUpdatePermissionPromptResult is a core/non-UI class 2016-02-29 08:38:28 -05:00
Zorg 253f544bbe Remove old localized byte count code 2016-02-29 08:28:54 -05:00
Zorg 16b9d47cbe SUHost can go back to non-public header
Although I don't know if this should be the final decision on that matter.
If users create their own user drivers, will they want SUHost?
2016-02-29 03:04:36 -05:00
Zorg d3ed152e1a Let SUSparkleUserUpdaterDriver take a NSBundle instead of SUHost
This way we don't have to expose SUHost to public anymore, I think
2016-02-29 03:00:12 -05:00
Zorg 5e87fe6daa Let delegate tell us if it's responsible for signaling termination 2016-02-29 02:53:50 -05:00
Zorg 34cf472834 Import Foundation in SUStatusCompletionResults.h 2016-02-29 02:29:22 -05:00
Zorg 1278a34d3b Move SUUserUpdaterDriverDelegate into its own source file 2016-02-29 02:28:51 -05:00
Zorg 1aa6f88819 Move status completion results into a new header 2016-02-29 02:23:15 -05:00
Zorg 829a88be58 Remove references to IOKit 2016-02-29 01:48:01 -05:00
Zorg 4a26c395d8 Add no-AppKit guards against all "core" files
Also move system shut off handling to the user driver.
Observing system shut off is difficult without AppKit, and
a client may want to observe for varying types of events.
I suppose this is consistent with application termination
notifications though.
2016-02-29 01:42:16 -05:00
Zorg 02ee6f9c15 Fix bad typo :\ 2016-02-28 22:53:57 -05:00
Zorg 6c1aa38ac9 Mm.. I don't think so. 2016-02-28 22:16:51 -05:00
Zorg 45e6951552 User updater driver is now aware about updates being in progress or not 2016-02-28 22:10:58 -05:00
Zorg 8c769ca9cd Raising exception if -[SUUpdater init] is called 2016-02-28 21:28:46 -05:00
Zorg 2e28d47d48 Add some docs on SUUpdateController 2016-02-28 21:21:40 -05:00
Zorg 21b49d41a2 Make sure updater is not nil for menu validation 2016-02-28 21:15:43 -05:00
Zorg 8325c9a4d9 Remove duplicated referenced classes in test app and framework 2016-02-28 21:05:23 -05:00
Zorg 6ade2f270b Don't see why this method should be very generic 2016-02-28 21:01:49 -05:00
Zorg 15b4d1adf3 Add a "Updater NIB" object for standard sparkle UI
I may consider  extending SUUpdater instead of another controller..
2016-02-28 20:18:06 -05:00
Zorg 7f494f13be Fix not observing driver finishing notifications 2016-02-28 20:16:47 -05:00
Zorg 34ad4cfd6b Add note about has launched before logic needing improvement 2016-02-28 18:03:38 -05:00
Zorg cba11cac2d Don't need to forward declare these methods 2016-02-28 17:50:00 -05:00
Zorg 3725d1e14d We don't need to delay update cycle from SUUpdater anymore 2016-02-28 17:48:47 -05:00
Zorg cfd462002c Let AutoUpdater relaunch itself through LaunchServices
This solves several problems:
1) we can't spawn a task reliably from a XPC process
2) we don't want to link to AppKit from SUBasicUpdateDriver
3) spawning a task to invoke open utility is poor with bad inputs
2016-02-28 17:46:29 -05:00
Zorg caf5e01643 Merge branch 'best-update-by-version' into ui-separation-core 2016-02-28 15:52:00 -05:00
Zorg 196bb64483 Be extra careful the updater is passed as a weak reference 2016-02-28 15:40:33 -05:00
Zorg 30abbb238a Fix AutoUpdate activation issues
Forcing the app to activate after we show the status window in AutoUpdate seems to work better
2016-02-28 15:34:11 -05:00
Zorg dccce32beb Temporary fix for running the test application 2016-02-28 15:18:09 -05:00
Zorg 680484f7c2 SUWindowController can be removed; it doesn't do anything 2016-02-28 15:09:09 -05:00
Zorg 030725ff2d Replace Cocoa imports with Foundation in unit tests 2016-02-28 14:52:39 -05:00
Zorg cd83dd3769 Removing NTSynchronousTask for good 2016-02-28 14:45:16 -05:00
Zorg f88eec8105 Remove NTSynchronousTask from SUCodeSigningVerifierTest 2016-02-28 14:11:54 -05:00
Zorg c6df59c7b0 Fix code signing verifier tests for me 2016-02-28 14:06:05 -05:00
Zorg 876c7af538 Move finding active host pid into Autoupdate
Also use 'open' instead of NSWorkspace to remove our dependency on AppKit
2016-02-28 13:38:51 -05:00
Zorg 513d7f39a1 Use SUFileManager to move the temp item to the trash 2016-02-28 12:27:53 -05:00
Zorg 3e64da75b6 Replace Cocoa import with Foundation wherever possible 2016-02-28 11:59:27 -05:00