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;