Skip to content

Commit

Permalink
Update NSView with setShadow:/shadow methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Dec 24, 2023
1 parent 3f30d13 commit 33d66e0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Headers/AppKit/NSView.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down
14 changes: 14 additions & 0 deletions Source/NSView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -5484,3 +5485,16 @@ - (void) _recursiveSetUpKeyViewLoopWithNextKeyView: (NSView *)nextKeyView
}

@end

@implementation NSView (CoreAnimationSupport)

- (NSShadow *) shadow
{
return nil;
}

- (void) setShadow: (NSShadow *)shadow
{
}

@end

0 comments on commit 33d66e0

Please sign in to comment.