Cog/Visualization/SpectrumItem.m
Christopher Snowhill 1728debe94 [Visualizer] Bring back CoreGraphics visualizer
For legacy systems that do not support Metal. The Metal SceneKit view
does work on even 10.13.6, if a Metal GPU is present in the system.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-06-08 21:32:52 -07:00

22 lines
421 B
Objective-C

//
// SpectrumItem.m
// Cog
//
// Created by Christopher Snowhill on 2/13/22.
//
#import "SpectrumItem.h"
#import "SpectrumView.h"
#import "SpectrumViewLegacy.h"
@implementation SpectrumItem
- (void)awakeFromNib {
NSRect frame = NSMakeRect(0, 0, 64, 26);
NSView *view = [[SpectrumView alloc] initWithFrame:frame];
if(!view) view = [[SpectrumViewLegacy alloc] initWithFrame:frame];
[self setView:view];
}
@end