Add path component cells

This commit is contained in:
Gregory John Casamento 2020-04-26 23:42:44 -04:00
parent c49fcc0e0b
commit f07ed1351d
2 changed files with 13 additions and 1 deletions

View file

@ -57,6 +57,7 @@ typedef NSUInteger NSPathStyle;
id<NSPathControlDelegate> _delegate;
NSURL *_url;
SEL _doubleAction;
NSArray *_pathComponentCells;
}
- (void) setPathStyle: (NSPathStyle)style;

View file

@ -23,9 +23,19 @@
*/
#import "AppKit/NSPathControl.h"
#import "AppKit/NSPathCell.h"
@implementation NSPathControl
+ (void) initialize
{
if (self == [NSPathControl class])
{
[self setVersion: 1.0];
[self setCellClass: [NSPathCell class]];
}
}
- (void) setPathStyle: (NSPathStyle)style
{
_pathStyle = style;
@ -43,11 +53,12 @@
- (NSArray *) pathComponentCells
{
return nil;
return _pathComponentCells;
}
- (void) setPathComponentCells: (NSArray *)cells
{
ASSIGN(_pathComponentCells, cells);
}
- (SEL) doubleAction;