mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
23 lines
390 B
Objective-C
23 lines
390 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"
|
|
|
|
@implementation WindowDelegate
|
|
|
|
- (BOOL)windowShouldClose:(NSWindow *)sender {
|
|
[sender orderOut:nil];
|
|
if( self.hideOnClose == false ) {
|
|
NSLog(@"send message: WC");
|
|
}
|
|
return !self.hideOnClose;
|
|
}
|
|
|
|
@end
|