Commit 5b4f7105 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* playlistinfo.m: update the stats faster after a p_item-switch

* both: fixed each one 'comparison of distinct Objective-C types lacks a cast' warnings
parent c934307d
......@@ -226,7 +226,8 @@
[[VLCInfoTreeItem rootItem] refresh];
[o_outline_view reloadData];
/* updating the stats isn't our job, but is done by the timer if needed */
/* update the stats once to display p_item change faster */
[self updateStatistics: nil];
}
- (void)setMeta: (char *)meta forLabel: (id)theItem
......@@ -394,7 +395,7 @@
- (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item
{
return (item == nil) ? [[VLCInfoTreeItem rootItem] childAtIndex:index] : [item childAtIndex:index];
return (item == nil) ? [[VLCInfoTreeItem rootItem] childAtIndex:index] : (id)[item childAtIndex:index];
}
- (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item
......
......@@ -202,7 +202,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
- (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item {
return (item == nil) ? [[VLCTreeItem rootItem] childAtIndex:index] :
[item childAtIndex:index];
(id)[item childAtIndex:index];
}
- (id)outlineView:(NSOutlineView *)outlineView
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment