Skip to content

where is the ~applyUpdate~ installUpdatesIfAvailable function in v2.4.1? #2378

Answered by zorgiepoo
mbsanchez asked this question in Q&A
Discussion options

You must be logged in to vote

If you're working with objc you should pick up the fundamentals and not guess at things.

This is a short subclassing sample:

@interface SUAppUserDriver : SPUStandardUserDriver
@end

@implementation SUAppUserDriver
{
    void (^_installUpdateBlock)(SPUUserUpdateChoice);
}

- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem state:(SPUUserUpdateState *)state reply:(void (^)(SPUUserUpdateChoice))reply
{
    _installUpdateBlock = [reply copy];
    
    // Show floating window prompt. When user clicks install invoke _installUpdateBlock(SPUUserUpdateChoiceInstall)
    // If appcastItem.informationOnlyUpdate, reply SPUUserUpdateChoiceDismiss and show user the appcastItem.infoURL …

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
7 replies
@mbsanchez
Comment options

@zorgiepoo
Comment options

@mbsanchez
Comment options

@zorgiepoo
Comment options

Answer selected by mbsanchez
@mbsanchez
Comment options

Comment options

You must be logged in to vote
6 replies
@mbsanchez
Comment options

@mbsanchez
Comment options

@mbsanchez
Comment options

@zorgiepoo
Comment options

@mbsanchez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants