2022-02-13 09:32:26 +00:00
|
|
|
//
|
|
|
|
// SpectrumItem.m
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Christopher Snowhill on 2/13/22.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "SpectrumItem.h"
|
|
|
|
|
2022-06-18 05:14:32 +00:00
|
|
|
#import "SpectrumViewSK.h"
|
|
|
|
#import "SpectrumViewCG.h"
|
|
|
|
|
|
|
|
#import "Logging.h"
|
2022-06-09 04:32:52 +00:00
|
|
|
|
2022-02-13 09:32:26 +00:00
|
|
|
@implementation SpectrumItem
|
|
|
|
|
|
|
|
- (void)awakeFromNib {
|
2022-06-09 04:32:52 +00:00
|
|
|
NSRect frame = NSMakeRect(0, 0, 64, 26);
|
2022-06-18 05:14:32 +00:00
|
|
|
NSView *view = nil;
|
|
|
|
if(self.toolbar) view = [SpectrumViewSK createGuardWithFrame:frame];
|
|
|
|
if(!view) view = [[SpectrumViewCG alloc] initWithFrame:frame];
|
2022-02-13 09:32:26 +00:00
|
|
|
[self setView:view];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|