Revision ef8f82df pithos-macos/PithosBrowserController.m
b/pithos-macos/PithosBrowserController.m | ||
---|---|---|
2023 | 2023 |
#pragma mark NSOutlineViewDataSource |
2024 | 2024 |
|
2025 | 2025 |
- (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { |
2026 |
if (!browserInitialized) |
|
2027 |
return 0; |
|
2026 | 2028 |
if (item == nil) |
2027 | 2029 |
return 2; |
2028 | 2030 |
if (item == containersNode) |
... | ... | |
2033 | 2035 |
} |
2034 | 2036 |
|
2035 | 2037 |
- (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item { |
2038 |
if (!browserInitialized) |
|
2039 |
return nil; |
|
2036 | 2040 |
if (item == nil) |
2037 | 2041 |
return (!index ? containersNode : sharedNode); |
2038 | 2042 |
if (item == sharedNode) |
Also available in: Unified diff