From c84fa5a10f0c122e43e1fc22f1528d38e8d931f2 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Wed, 6 May 2020 11:50:03 -0400 Subject: [PATCH] Remove decoding of NSContents --- Source/NSPathCell.m | 8 ++------ Source/NSPathControl.m | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/NSPathCell.m b/Source/NSPathCell.m index 1390ca9e1..58087a709 100644 --- a/Source/NSPathCell.m +++ b/Source/NSPathCell.m @@ -27,7 +27,7 @@ #import "AppKit/NSImage.h" #import "AppKit/NSPathComponentCell.h" -Class pathComponentCellClass; +static Class pathComponentCellClass; @interface NSPathCell (Private) + (NSArray *) _generateCellsForURL: (NSURL *)url; @@ -236,11 +236,7 @@ Class pathComponentCellClass; [self setPathComponentCells: [coder decodeObjectForKey: @"NSPathComponentCells"]]; } - if ([coder containsValueForKey: @"NSContents"]) - { - [self setObjectValue: [coder decodeObjectForKey: @"NSContents"]]; - } - + // [self setURL: [self objectValue]]; NSLog(@"OBJECTVALUE = %@", [self objectValue]); } diff --git a/Source/NSPathControl.m b/Source/NSPathControl.m index 02d288030..77e8af227 100644 --- a/Source/NSPathControl.m +++ b/Source/NSPathControl.m @@ -37,7 +37,7 @@ #import "AppKit/NSTrackingArea.h" static NSNotificationCenter *nc = nil; -Class pathCellClass; +static Class pathCellClass; @interface NSPathCell (PathControlPrivate) - (void) _setClickedPathComponentCell: (NSPathComponentCell *)c;