KMDocumentAIPopViewController.m 762 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // KMDocumentAIPopViewController.m
  3. // PDF Master
  4. //
  5. // Created by 丁林圭 on 2023/2/2.
  6. //
  7. #import "KMDocumentAIPopViewController.h"
  8. @interface KMDocumentAIPopViewController ()
  9. @property(nonatomic,assign)IBOutlet NSButton *cancelButton;
  10. @property(nonatomic,assign)IBOutlet NSButton *applyButton;
  11. @end
  12. @implementation KMDocumentAIPopViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. self.cancelButton.title = NSLocalizedString(@"Cancel", nil);
  16. self.applyButton.title = NSLocalizedString(@"Apply", nil);
  17. }
  18. - (IBAction)buttonItemClick_Cancel:(id)sender {
  19. if(self.callback) {
  20. self.callback(0);
  21. }
  22. }
  23. - (IBAction)buttonItemClick_Apply:(id)sender {
  24. if(self.callback) {
  25. self.callback(1);
  26. }
  27. }
  28. @end