Update deprecated NSCenterTextAlignment usage to NSTextAlignmentCenter

This commit is contained in:
David Richardson
2024-07-03 09:05:32 -06:00
parent 96a3c4b9dd
commit d1611bae12
@@ -65,7 +65,7 @@
- (void)_setTextColor:(NSColor *)color forButton:(NSButton *)button
{
NSMutableParagraphStyle *paragraphStyle= [NSMutableParagraphStyle new];
[paragraphStyle setAlignment:NSCenterTextAlignment];
[paragraphStyle setAlignment:NSTextAlignmentCenter];
NSDictionary *attrs = @{NSFontAttributeName: [NSFont systemFontOfSize:11],
NSForegroundColorAttributeName: color,
@@ -509,4 +509,4 @@
}
}
@end
@end