Fix for making rootPath KVC compliant for the file tree.

CQTexperiment
vspader 2008-01-31 00:50:50 +00:00
parent 840ee839d0
commit efe0bd06ad
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@
IBOutlet NSOutlineView *outlineView;
}
- (NSString *)rootPath;
- (void)setRootPath:(NSString *)rootPath;
- (void)reloadPathNode:(PathNode *)item;

View File

@ -19,6 +19,11 @@
[self setRootPath: [[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"fileDrawerRootPath"] ];
}
- (NSString *)rootPath
{
return [[rootNode url] path];
}
- (void)setRootPath: (NSString *)rootPath
{
[[[[outlineView tableColumns] objectAtIndex:0] headerCell] setStringValue:[[NSFileManager defaultManager] displayNameAtPath:rootPath]];