Fix issues mentioned by @fredkiefer

This commit is contained in:
Gregory John Casamento 2024-04-21 13:36:04 -04:00
parent 5d17658b0e
commit 42bae42431
2 changed files with 10 additions and 4 deletions

View file

@ -201,8 +201,14 @@
- (id) copyWithZone: (NSZone *)zone
{
NSData *d = [NSArchiver archivedDataWithRootObject: self];
id copy = [NSUnarchiver unarchiveObjectWithData: d];
NSTableCellView *copy = [[NSTableCellView allocWithZone: zone] init];
[copy setObjectValue: [self objectValue]];
[copy setImageView: [self imageView]];
[copy setTextField: [self textField]];
[copy setDraggingImageComponents: [self draggingImageComponents]];
[copy setBackgroundStyle: [self backgroundStyle]];
[copy setRowSizeStyle: [self rowSizeStyle]];
return copy;
}

View file

@ -6744,7 +6744,7 @@ For a more detailed explanation, -setSortDescriptors:. */
{
id result = nil;
GSKeyValueBinding *theBinding;
theBinding = [GSKeyValueBinding getBinding: NSValueBinding
forObject: tb];
if (theBinding != nil)
@ -6896,7 +6896,7 @@ For a more detailed explanation, -setSortDescriptors:. */
return [path section];
}
- (NSView *) makeViewWithIdentifier: (NSUserInterfaceItemIdentifier)identifier owner:(id)owner
- (NSView *) makeViewWithIdentifier: (NSUserInterfaceItemIdentifier)identifier owner: (id)owner
{
NSView *view = [_registeredViews objectForKey: identifier];