Remove decoding of NSContents

This commit is contained in:
Gregory John Casamento 2020-05-06 11:50:03 -04:00
parent deaae76366
commit c84fa5a10f
2 changed files with 3 additions and 7 deletions

View file

@ -27,7 +27,7 @@
#import "AppKit/NSImage.h" #import "AppKit/NSImage.h"
#import "AppKit/NSPathComponentCell.h" #import "AppKit/NSPathComponentCell.h"
Class pathComponentCellClass; static Class pathComponentCellClass;
@interface NSPathCell (Private) @interface NSPathCell (Private)
+ (NSArray *) _generateCellsForURL: (NSURL *)url; + (NSArray *) _generateCellsForURL: (NSURL *)url;
@ -236,11 +236,7 @@ Class pathComponentCellClass;
[self setPathComponentCells: [coder decodeObjectForKey: @"NSPathComponentCells"]]; [self setPathComponentCells: [coder decodeObjectForKey: @"NSPathComponentCells"]];
} }
if ([coder containsValueForKey: @"NSContents"]) // [self setURL: [self objectValue]];
{
[self setObjectValue: [coder decodeObjectForKey: @"NSContents"]];
}
NSLog(@"OBJECTVALUE = %@", [self objectValue]); NSLog(@"OBJECTVALUE = %@", [self objectValue]);
} }

View file

@ -37,7 +37,7 @@
#import "AppKit/NSTrackingArea.h" #import "AppKit/NSTrackingArea.h"
static NSNotificationCenter *nc = nil; static NSNotificationCenter *nc = nil;
Class pathCellClass; static Class pathCellClass;
@interface NSPathCell (PathControlPrivate) @interface NSPathCell (PathControlPrivate)
- (void) _setClickedPathComponentCell: (NSPathComponentCell *)c; - (void) _setClickedPathComponentCell: (NSPathComponentCell *)c;