fix: annoying negative frame warning
This commit is contained in:
@@ -9,4 +9,4 @@ MACOSX_DEPLOYMENT_TARGET = 10.14
|
|||||||
MARKETING_VERSION = 1.5.3
|
MARKETING_VERSION = 1.5.3
|
||||||
PRODUCT_NAME = baRSS
|
PRODUCT_NAME = baRSS
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = de.relikd.baRSS
|
PRODUCT_BUNDLE_IDENTIFIER = de.relikd.baRSS
|
||||||
CURRENT_PROJECT_VERSION = 16792
|
CURRENT_PROJECT_VERSION = 16811
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
NSUserInterfaceItemIdentifier const CustomCellName = @"NameColumnCell";
|
NSUserInterfaceItemIdentifier const CustomCellName = @"NameColumnCell";
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(NSRect)frameRect {
|
- (instancetype)initWithFrame:(NSRect)frameRect {
|
||||||
self = [super initWithFrame:frameRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 100, 0)];
|
||||||
self.identifier = CustomCellName;
|
self.identifier = CustomCellName;
|
||||||
self.imageView = [[NSView imageView:nil size:16] placeIn:self x:1 yTop:1];
|
self.imageView = [[NSView imageView:nil size:16] placeIn:self x:1 yTop:1];
|
||||||
self.imageView.accessibilityLabel = NSLocalizedString(@"Feed icon", nil);
|
self.imageView.accessibilityLabel = NSLocalizedString(@"Feed icon", nil);
|
||||||
@@ -195,7 +195,7 @@ NSUserInterfaceItemIdentifier const CustomCellName = @"NameColumnCell";
|
|||||||
NSUserInterfaceItemIdentifier const CustomCellRefresh = @"RefreshColumnCell";
|
NSUserInterfaceItemIdentifier const CustomCellRefresh = @"RefreshColumnCell";
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(NSRect)frameRect {
|
- (instancetype)initWithFrame:(NSRect)frameRect {
|
||||||
self = [super initWithFrame:frameRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 100, 0)];
|
||||||
self.identifier = CustomCellRefresh;
|
self.identifier = CustomCellRefresh;
|
||||||
self.textField = [[[[NSView label:@""] textRight] placeIn:self x:0 yTop:0] sizeToRight:0];
|
self.textField = [[[[NSView label:@""] textRight] placeIn:self x:0 yTop:0] sizeToRight:0];
|
||||||
self.textField.accessibilityTitle = @" "; // otherwise groups and separators will say 'text'
|
self.textField.accessibilityTitle = @" "; // otherwise groups and separators will say 'text'
|
||||||
@@ -224,7 +224,7 @@ NSUserInterfaceItemIdentifier const CustomCellRefresh = @"RefreshColumnCell";
|
|||||||
NSUserInterfaceItemIdentifier const CustomCellSeparator = @"SeparatorColumnCell";
|
NSUserInterfaceItemIdentifier const CustomCellSeparator = @"SeparatorColumnCell";
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(NSRect)frameRect {
|
- (instancetype)initWithFrame:(NSRect)frameRect {
|
||||||
self = [super initWithFrame:frameRect];
|
self = [super initWithFrame:NSMakeRect(0, 0, 100, 0)];
|
||||||
self.identifier = CustomCellSeparator;
|
self.identifier = CustomCellSeparator;
|
||||||
[[[[DrawSeparator alloc] initWithFrame:self.frame] placeIn:self x:0 y:0] sizableWidthAndHeight];
|
[[[[DrawSeparator alloc] initWithFrame:self.frame] placeIn:self x:0 y:0] sizableWidthAndHeight];
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
Reference in New Issue
Block a user