Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Class Methods | List of all members
SparkleUpdateController Class Reference

Singleton wrapper around SPUStandardUpdaterController for Sparkle 2. More...

Inheritance diagram for SparkleUpdateController:

Class Methods

(SPUStandardUpdaterController *) + sharedStandardUpdaterController
 Returns the shared SPUStandardUpdaterController instance, creating it on first call.
 

Detailed Description

Singleton wrapper around SPUStandardUpdaterController for Sparkle 2.

Sparkle 2 no longer provides a built-in shared instance (the Sparkle 1 [SUUpdater sharedUpdater] was deprecated). This class fills that gap by creating exactly one SPUStandardUpdaterController on first access using dispatch_once (equivalent to std::call_once / Q_GLOBAL_STATIC).

The "+" prefix means sharedStandardUpdaterController is a class method (like a C++ static method), so callers write:

Singleton wrapper around SPUStandardUpdaterController for Sparkle 2.
Definition sparkle_bridge.mm:221
SPUStandardUpdaterController * sharedStandardUpdaterController()
Returns the shared SPUStandardUpdaterController instance, creating it on first call.
Definition sparkle_bridge.mm:232

rather than creating an instance first.

Method Documentation

◆ sharedStandardUpdaterController

+ (SPUStandardUpdaterController *) sharedStandardUpdaterController

Returns the shared SPUStandardUpdaterController instance, creating it on first call.

Returns
The singleton SPUStandardUpdaterController used for all update operations.

The documentation for this class was generated from the following file: