Add setCellClass: / cellClass

This commit is contained in:
Gregory John Casamento 2020-05-06 10:52:40 -04:00
parent 1e1e1043f8
commit 1f74bec01c

View file

@ -37,6 +37,7 @@
#import "AppKit/NSTrackingArea.h"
static NSNotificationCenter *nc = nil;
Class pathCellClass;
@interface NSPathCell (PathControlPrivate)
- (void) _setClickedPathComponentCell: (NSPathComponentCell *)c;
@ -58,6 +59,17 @@ static NSNotificationCenter *nc = nil;
}
}
+ (Class) cellClass
{
return pathCellClass;
}
+ (void) setCellClass: (Class)classId
{
pathCellClass = classId;
}
- (void) _resetTrackingRect
{
[[self superview] removeTrackingRect: _trackingTag];