Fix for making rootPath KVC compliant for the file tree.
parent
840ee839d0
commit
efe0bd06ad
|
@ -16,6 +16,7 @@
|
||||||
IBOutlet NSOutlineView *outlineView;
|
IBOutlet NSOutlineView *outlineView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *)rootPath;
|
||||||
- (void)setRootPath:(NSString *)rootPath;
|
- (void)setRootPath:(NSString *)rootPath;
|
||||||
|
|
||||||
- (void)reloadPathNode:(PathNode *)item;
|
- (void)reloadPathNode:(PathNode *)item;
|
||||||
|
|
|
@ -19,6 +19,11 @@
|
||||||
[self setRootPath: [[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"fileDrawerRootPath"] ];
|
[self setRootPath: [[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"fileDrawerRootPath"] ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *)rootPath
|
||||||
|
{
|
||||||
|
return [[rootNode url] path];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setRootPath: (NSString *)rootPath
|
- (void)setRootPath: (NSString *)rootPath
|
||||||
{
|
{
|
||||||
[[[[outlineView tableColumns] objectAtIndex:0] headerCell] setStringValue:[[NSFileManager defaultManager] displayNameAtPath:rootPath]];
|
[[[[outlineView tableColumns] objectAtIndex:0] headerCell] setStringValue:[[NSFileManager defaultManager] displayNameAtPath:rootPath]];
|
||||||
|
|
Loading…
Reference in New Issue