mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
39 lines
872 B
Objective-C
39 lines
872 B
Objective-C
//
|
|
// SUUpdateSettingsWindowController.m
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 7/25/15.
|
|
// Copyright (c) 2015 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import "SUUpdateSettingsWindowController.h"
|
|
#import <Sparkle/Sparkle.h>
|
|
|
|
@interface SUUpdateSettingsWindowController ()
|
|
|
|
@property (nonatomic) IBOutlet SPUStandardUpdaterController *updaterController;
|
|
|
|
@end
|
|
|
|
@implementation SUUpdateSettingsWindowController
|
|
|
|
@synthesize updaterController = _updaterController;
|
|
|
|
- (NSString *)windowNibName
|
|
{
|
|
return NSStringFromClass([self class]);
|
|
}
|
|
|
|
- (IBAction)checkForUpdates:(id __unused)sender
|
|
{
|
|
[self.updaterController checkForUpdates:self];
|
|
}
|
|
|
|
// This would not be necessary if the updater controller was instantiated in the main menu nib
|
|
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
|
|
{
|
|
return [self.updaterController validateMenuItem:menuItem];
|
|
}
|
|
|
|
@end
|