12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // KMSavePanelAccessoryController.m
- // PDF Reader
- //
- // Created by 蒋志鹏 on 2018/9/26.
- // Copyright © 2018年 Kdan Mobile. All rights reserved.
- //
- #import "KMSavePanelAccessoryController.h"
- @interface KMSavePanelAccessoryController ()
- @property (nonatomic, assign) BOOL needOpen;
- @end
- @implementation KMSavePanelAccessoryController
- - (instancetype)init
- {
- self = [super initWithNibName:@"KMSavePanelAccessoryController" bundle:nil];
- if (self) {
-
- }
- return self;
-
- }
- - (void)awakeFromNib
- {
- [super awakeFromNib];
- self.openAutomaticButton.title = NSLocalizedString(@"Open the document after saving", nil);
- self.openAutomaticButton.state = NSControlStateValueOff;
- }
- - (IBAction)buttonClicked_OpenAutomatic:(NSButton *)sender
- {
- _needOpen = sender.state == NSControlStateValueOn;
- }
- @end
|