Re-Commit after Time Machine restore
This commit is contained in:
@@ -46,27 +46,15 @@
|
||||
#pragma mark Outline view Data Source and Delegate
|
||||
|
||||
-(NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item {
|
||||
if (item == nil) {
|
||||
return [loadedResults count];
|
||||
}
|
||||
if ([item isKindOfClass:[NSArray class]]) {
|
||||
return [item count];
|
||||
}
|
||||
return 0;
|
||||
return item == nil ? [loadedResults count] : 0;
|
||||
}
|
||||
|
||||
-(id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item {
|
||||
if (item == nil) {
|
||||
return [loadedResults objectAtIndex:index];
|
||||
}
|
||||
if ([item isKindOfClass:[SearchResult class]]) {
|
||||
return [item objectAtIndex:index];
|
||||
}
|
||||
return nil;
|
||||
return [loadedResults objectAtIndex:index];
|
||||
}
|
||||
|
||||
-(BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item {
|
||||
return [loadedResults containsObject:item];
|
||||
return NO;
|
||||
}
|
||||
|
||||
-(id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item {
|
||||
@@ -345,4 +333,5 @@
|
||||
-(void)loadFromDefaults:(NSUserDefaults *)defaults {
|
||||
[showPreviewCheckBox setState:[defaults boolForKey:@"Show preview"]?NSOnState:NSOffState];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user