SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
Cocoa/GBToolbarPopUpButtonCell.m
1 #import "GBToolbarPopUpButtonCell.h"
2
3 @implementation GBToolbarPopUpButtonCell
4
5 -(void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
6 {
7 [super drawInteriorWithFrame:CGRectInset(cellFrame, 5, 0) inView:controlView];
8 }
9
10 + (instancetype)allocWithZone:(struct _NSZone *)zone
11 {
12 if (@available(macOS 26.0, *)) {
13 return [super allocWithZone:zone];
14 }
15 return (id)[NSPopUpButtonCell allocWithZone:zone];
16 }
17 @end
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.