Replace Preferences view. Removed LaunchAtLoginController and replaced with simpler code

This commit is contained in:
Grant Limberg 2016-08-07 16:34:54 -07:00
parent c6dba50e35
commit 179324e44a
10 changed files with 145 additions and 237 deletions

View file

@ -0,0 +1,21 @@
//
// PreferencesViewController.h
// ZeroTier One
//
// Created by Grant Limberg on 8/7/16.
// Copyright © 2016 ZeroTier, Inc. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface PreferencesViewController : NSViewController
@property (nonatomic, weak) IBOutlet NSButton *startupCheckBox;
- (IBAction)onStartupCheckBoxChanged:(NSButton*)sender;
- (BOOL)isLaunchAtStartup;
- (LSSharedFileListItemRef)itemRefInLoginItems;
- (void)setLaunchAtLoginEnabled:(BOOL)enabled;
@end