mirror of
https://github.com/samhenrigold/LidAngleSensor.git
synced 2026-01-12 09:17:43 +03:00
37 lines
626 B
Objective-C
37 lines
626 B
Objective-C
//
|
|
// NSLabel.m
|
|
// LidAngleSensor
|
|
//
|
|
// Created by Sam on 2025-09-06.
|
|
//
|
|
|
|
#import "NSLabel.h"
|
|
|
|
@implementation NSLabel
|
|
|
|
- (instancetype)init {
|
|
self = [super init];
|
|
if (self) {
|
|
[self configureAsLabel];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (instancetype)initWithFrame:(NSRect)frameRect {
|
|
self = [super initWithFrame:frameRect];
|
|
if (self) {
|
|
[self configureAsLabel];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)configureAsLabel {
|
|
[self setBezeled:NO];
|
|
[self setDrawsBackground:NO];
|
|
[self setEditable:NO];
|
|
[self setSelectable:NO];
|
|
[self setTranslatesAutoresizingMaskIntoConstraints:NO];
|
|
}
|
|
|
|
@end
|