mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 21:47:57 +00:00
AudioSubmix reference fix; macOS window icon
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#endif
|
||||
|
||||
namespace boo {class WindowCocoa; class GraphicsContextCocoa;}
|
||||
@interface WindowCocoaInternal : NSWindow
|
||||
@interface WindowCocoaInternal : NSWindow <NSWindowDelegate>
|
||||
{
|
||||
std::shared_ptr<boo::WindowCocoa> booWindow;
|
||||
id touchBarProvider;
|
||||
@@ -1608,11 +1608,23 @@ std::shared_ptr<IWindow> _WindowCocoaNew(SystemStringView title, NSOpenGLContext
|
||||
NSWindowStyleMaskResizable
|
||||
backing:NSBackingStoreBuffered
|
||||
defer:YES];
|
||||
self.delegate = self;
|
||||
self.releasedWhenClosed = NO;
|
||||
self.title = [NSString stringWithUTF8String:title.data()];
|
||||
|
||||
NSString* titleImgPath = [[NSBundle mainBundle] pathForResource:@"mainicon" ofType:@"icns"];
|
||||
NSImage* titleImg = [[NSImage alloc] initByReferencingFile:titleImgPath];
|
||||
[self setRepresentedURL:[NSURL URLWithString:@""]];
|
||||
NSButton* iconButton = [self standardWindowButton:NSWindowDocumentIconButton];
|
||||
[iconButton setImage:titleImg];
|
||||
|
||||
booWindow = bw;
|
||||
return self;
|
||||
}
|
||||
- (BOOL)window:(NSWindow*)window shouldPopUpDocumentPathMenu:(NSMenu*)menu
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
- (void)setFrameDefault
|
||||
{
|
||||
[self setFrame:[self genFrameDefault] display:NO];
|
||||
|
||||
Reference in New Issue
Block a user