Move NSModalResponse and GSNSWindowDidEndSheetCallbackBlock to NSWindow.h

This commit is contained in:
ethanc8 2024-02-05 16:04:05 -06:00
parent b1a476801a
commit adba87cb51
3 changed files with 9 additions and 26 deletions

View file

@ -28,6 +28,7 @@
#ifndef _GNUstep_H_NSAlert
#define _GNUstep_H_NSAlert
#import <AppKit/NSWindow.h>
#import <AppKit/AppKitDefines.h>
#import <Foundation/NSObject.h>
@ -49,17 +50,6 @@ enum _NSAlertStyle {
};
typedef NSUInteger NSAlertStyle;
enum {
NSAlertFirstButtonReturn = 1000,
NSAlertSecondButtonReturn = 1001,
NSAlertThirdButtonReturn = 1002
};
#if OS_API_VERSION(MAC_OS_X_VERSION_10_9, GS_API_LATEST)
typedef NSInteger NSModalResponse;
DEFINE_BLOCK_TYPE(GSNSWindowDidEndSheetCallbackBlock, void, NSModalResponse returnCode);
#endif
APPKIT_EXPORT_CLASS
@interface NSAlert : NSObject
{