mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:40:47 +00:00
Move NSModalResponse and GSNSWindowDidEndSheetCallbackBlock to NSWindow.h
This commit is contained in:
parent
b1a476801a
commit
adba87cb51
3 changed files with 9 additions and 26 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue