mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Add path component cells
This commit is contained in:
parent
c49fcc0e0b
commit
f07ed1351d
2 changed files with 13 additions and 1 deletions
|
@ -57,6 +57,7 @@ typedef NSUInteger NSPathStyle;
|
|||
id<NSPathControlDelegate> _delegate;
|
||||
NSURL *_url;
|
||||
SEL _doubleAction;
|
||||
NSArray *_pathComponentCells;
|
||||
}
|
||||
|
||||
- (void) setPathStyle: (NSPathStyle)style;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue