Update NSView with setShadow:/shadow methods

This commit is contained in:
Gregory John Casamento 2023-12-24 13:28:08 -05:00
parent 3f30d139bc
commit 33d66e0ddc
2 changed files with 30 additions and 0 deletions

View file

@ -735,6 +735,22 @@ PACKAGE_SCOPE
@end
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
/*
* Core Animation support methods. More methods will be added here as more are implemented.
*/
@class NSShadow;
@interface NSView (CoreAnimationSupport)
- (NSShadow *) shadow;
- (void) setShadow: (NSShadow *)shadow;
@end
#endif
@class NSAffineTransform;
/*

View file

@ -68,6 +68,7 @@
#import "AppKit/NSPrintInfo.h"
#import "AppKit/NSPrintOperation.h"
#import "AppKit/NSScrollView.h"
#import "AppKit/NSShadow.h"
#import "AppKit/NSView.h"
#import "AppKit/NSWindow.h"
#import "AppKit/NSWorkspace.h"
@ -5484,3 +5485,16 @@ cmpFrame(id view1, id view2, void *context)
}
@end
@implementation NSView (CoreAnimationSupport)
- (NSShadow *) shadow
{
return nil;
}
- (void) setShadow: (NSShadow *)shadow
{
}
@end