mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
This is only true because we’re targeting x86_64 on OS X. The same is true for all iOS architectures, but not i386 on OS X. Use CFBridgingRelease in a few places: it acts just like [(id)CFMakeCollectable(obj) autorelease] on non-ARC code, but is a bit cleaner.
38 lines
941 B
Objective-C
38 lines
941 B
Objective-C
//
|
|
// SUAutomaticUpdateAlert.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 3/18/06.
|
|
// Copyright 2006 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUAUTOMATICUPDATEALERT_H
|
|
#define SUAUTOMATICUPDATEALERT_H
|
|
|
|
#import "SUWindowController.h"
|
|
|
|
@protocol SUAutomaticUpdateAlertDelegateProtocol;
|
|
|
|
typedef enum
|
|
{
|
|
SUInstallNowChoice,
|
|
SUInstallLaterChoice,
|
|
SUDoNotInstallChoice
|
|
} SUAutomaticInstallationChoice;
|
|
|
|
@class SUAppcastItem, SUHost;
|
|
@interface SUAutomaticUpdateAlert : SUWindowController
|
|
|
|
- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)hostBundle delegate:(id<SUAutomaticUpdateAlertDelegateProtocol>)delegate;
|
|
- (IBAction)installNow:sender;
|
|
- (IBAction)installLater:sender;
|
|
- (IBAction)doNotInstall:sender;
|
|
|
|
@end
|
|
|
|
@protocol SUAutomaticUpdateAlertDelegateProtocol <NSObject>
|
|
- (void)automaticUpdateAlert:(SUAutomaticUpdateAlert *)aua finishedWithChoice:(SUAutomaticInstallationChoice)choice;
|
|
@end
|
|
|
|
#endif
|