5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 07:29:56 +08:00
wails/v3/pkg/application/dialogs_darwin_delegate.h
Lea Anthony a0b2ab7c0a
Fix default index.html serving.
Support multi-language default.
Remove default page from production builds.
Improve defaultindex.html.
2024-12-14 11:10:07 +11:00

18 lines
448 B
Objective-C

//go:build darwin
#ifndef _DIALOGS_DELEGATE_H_
#define _DIALOGS_DELEGATE_H_
#import <Cocoa/Cocoa.h>
// Conditionally import UniformTypeIdentifiers based on OS version
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
#import <UniformTypeIdentifiers/UTType.h>
#endif
// OpenPanel delegate to handle file filtering
@interface OpenPanelDelegate : NSObject <NSOpenSavePanelDelegate>
@property (nonatomic, strong) NSArray *allowedExtensions;
@end
#endif