mirror of https://github.com/LIJI32/SameBoy.git
18 lines
447 B
Objective-C
18 lines
447 B
Objective-C
#import "GBToolbarPopUpButtonCell.h"
|
|
|
|
@implementation GBToolbarPopUpButtonCell
|
|
|
|
-(void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
|
|
{
|
|
[super drawInteriorWithFrame:CGRectInset(cellFrame, 5, 0) inView:controlView];
|
|
}
|
|
|
|
+ (instancetype)allocWithZone:(struct _NSZone *)zone
|
|
{
|
|
if (@available(macOS 26.0, *)) {
|
|
return [super allocWithZone:zone];
|
|
}
|
|
return (id)[NSPopUpButtonCell allocWithZone:zone];
|
|
}
|
|
@end
|