Files
Sparkle/TestApplication/SUUpdateSettingsWindowController.m
T
2016-08-05 19:10:21 -04:00

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