mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:51:26 +08:00
24 lines
403 B
Objective-C
24 lines
403 B
Objective-C
//
|
|
// WindowDelegate.m
|
|
// test
|
|
//
|
|
// Created by Lea Anthony on 10/10/21.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "WindowDelegate.h"
|
|
#import "message.h"
|
|
|
|
@implementation WindowDelegate
|
|
|
|
- (BOOL)windowShouldClose:(NSWindow *)sender {
|
|
[sender orderOut:nil];
|
|
if( self.hideOnClose == false ) {
|
|
processMessage("Q");
|
|
}
|
|
return !self.hideOnClose;
|
|
}
|
|
|
|
@end
|