mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +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.
41 lines
1.1 KiB
Objective-C
41 lines
1.1 KiB
Objective-C
//
|
|
// SUUpdatePermissionPrompt.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 1/24/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUUPDATEPERMISSIONPROMPT_H
|
|
#define SUUPDATEPERMISSIONPROMPT_H
|
|
|
|
#import "SUWindowController.h"
|
|
|
|
typedef enum {
|
|
SUAutomaticallyCheck,
|
|
SUDoNotAutomaticallyCheck
|
|
} SUPermissionPromptResult;
|
|
|
|
@protocol SUUpdatePermissionPromptDelegateProtocol;
|
|
|
|
@class SUHost;
|
|
@interface SUUpdatePermissionPrompt : SUWindowController {
|
|
SUHost *host;
|
|
NSArray *systemProfileInformationArray;
|
|
id<SUUpdatePermissionPromptDelegateProtocol> delegate;
|
|
IBOutlet NSTextField *descriptionTextField;
|
|
IBOutlet NSView *moreInfoView;
|
|
IBOutlet NSButton *moreInfoButton;
|
|
IBOutlet NSTableView *profileTableView;
|
|
}
|
|
+ (void)promptWithHost:(SUHost *)aHost systemProfile:(NSArray *)profile delegate:(id<SUUpdatePermissionPromptDelegateProtocol>)d;
|
|
- (IBAction)toggleMoreInfo:(id)sender;
|
|
- (IBAction)finishPrompt:(id)sender;
|
|
@end
|
|
|
|
@protocol SUUpdatePermissionPromptDelegateProtocol <NSObject>
|
|
- (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result;
|
|
@end
|
|
|
|
#endif
|