mirror of
https://github.com/libretro/sameduck.git
synced 2024-11-26 18:50:26 +00:00
19 lines
381 B
Objective-C
19 lines
381 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
@interface GBOptionalVisualEffectView : NSView
|
|
|
|
@end
|
|
|
|
@implementation GBOptionalVisualEffectView
|
|
|
|
+ (instancetype)allocWithZone:(struct _NSZone *)zone
|
|
{
|
|
Class NSVisualEffectView = NSClassFromString(@"NSVisualEffectView");
|
|
if (NSVisualEffectView) {
|
|
return (id)[NSVisualEffectView alloc];
|
|
}
|
|
return [super allocWithZone:zone];
|
|
}
|
|
|
|
@end
|