Browse files

Make NSOutlineView+ExpandAllItems compile warning-free with modern co…

…mpilers.
  • Loading branch information...
1 parent dd21b35 commit 8338d908b47a7ba815ab54281366b76996945d93 @uliwitness committed Feb 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 NSOutlineView+ExpandAllItems.m
View
2 NSOutlineView+ExpandAllItems.m
@@ -40,7 +40,7 @@ @implementation NSOutlineView (UKExpandAllItems)
-(void) expandAllItems
{
- NSObject* dataSource = [self dataSource];
+ NSObject<NSOutlineViewDataSource>* dataSource = [self dataSource];
int topItemCount = [dataSource outlineView: self numberOfChildrenOfItem: nil];
int x = 0;

0 comments on commit 8338d90

Please sign in to comment.